post

nothing happens when clicking on my submit button no _POST values

Hi. For some reason nothing happens when a user click on my submit button. The html look like this: <td colspan="3"> <div align="center"> <input name="Decline" id="Decline" value="Decline" type="submit"> | <input name="Accept" value="Accept" type="submit"> </div><input name="place"...

How do I make PayPal and cURL work together?

THE BACKGROUND DETAILS: I have a custom shopping cart that uses PayPal for payment processing. I have an intermediary page between the cart and PayPal that adds the order to a database and sends confirmation emails. Until now, I had the intermediary page set up to include all the necessary data as hidden form fields and submit the form...

How To Post XML via JavaScript to REST API?

Hi there. I'm trying to POST XML via JavaScript to a REST API. The Request Data looks like this: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <EditGame xmlns="http://blahblahblah.com" > <playerCount>2</playerCount> <score>2621440</score> </EditGame> How do I define the postString above if my code looks like this below: ...

Firefox empty POST with $.ajax

I've got a jQuery function that's posting to the server using $.ajax and it works fine in IE, Chrome and Safari, but in Firefox, no POST values are being received by the server. When i query the form collection (using classic ASP), i get undefined for all the values $.ajax({ type: 'POST', url: url, dataType: "text", da...

Multipart POST request not being recognized

Hi everyone, I'm building a multipart/form-data request and have been having trouble getting it to work. Here's what I'm sending: POST /post.php HTTP/1.1 Accept: */* Accept-Encoding: gzip, deflate Accept-Language: en-us Connection: keep-alive Cookie: <a cookie> Host: myserver.com Content-Type: multipart/form-data; boundary=1850FEA3-AE...

Post JSON using Curl

Hi Everyone! I am receiving a JSON which I can receive using php://input and I need to post it back to a different URL, but I'm not sure how to format it. Here's how I receive it: $updates = file_get_contents("php://input"); I could json_decode it and then parse out the array so that it would fit a normal POST-like request such ...

AJAX: Send and retrieve a value with jquery post() and PHP, WordPress

Hi, I'm trying to make the following happen in a WordPress page: User clicks on a "sort posts by" button Value from the button is sent to sortFilter.php page Current page is refreshed and uses the value posted in sortFilter.php to create a new loop. On the initial page there is a tag that I want to load the data into: <p id="sortF...

Review Site > Need common post template or plugin for product thumbnail, details and description

I'm working on a site in which each post will be dedicated to a single product review. I'd like to have a consistent look for each review so that the product image or cover art is at the top left. To the right of the product image, I'd like a listing of items (author, sales page, product cost, etc). Below these two, I'd like a summary d...

Why is the POST callback function not working

I am trying to perform the following fadeIn/fadeOut action within the jQuery $.post function. $.post('Scenario/SaveScenario', function (data) { $('<div class="save-alert">The current scenario has been saved.</div>') .insertAfter($('.buttons')) .fadeIn('slow') .animate({ opacity: 1.0 }, 2000) .fadeOut('slow', function...

php variable is not setting to desired value after form submission

//get var of posted info so user does not //have to reinsert if if validation = false if(!isset($_POST['FactionChanges'])){ $faction_name = ''; } else { $faction_name = "".$_POST['factionname'].""; } //without form submit, num_errors = 0 if(!isset($_POST['FactionChanges'])){ $num_errors = 0; } //without form submit, success = 0 if(!isse...

C# HttpWebRequest to a HTTPS failed

I am trying to login to this website https://www.virginmobile.com.au programatically (on the right there is a Member Login form). That form works. But when I do a POST request to the form action (https://www.virginmobile.com.au/selfcare/MyAccount/LogoutLoginPre.jsp) it failed. It returns a 302, then following up to the new location, it...

How to send a image to a server which requires "pic" parameter

hello, i need some idea to set a parameter which is "pic" in iphone program to upload a image, server needs this parameter to accept the image. i have no idea about setting a parameter. i am a very new iphone programmer. thanks ...

POST variables sending correctly in FF3.6 but not in FF4 beta

Can anyone think of any reason why a $_POST variable might be correctly send on Firefox 3.6 but not in Firefox 4 beta. I have print_r($_POST) and this value simply doesn't show at all in FF4. Here is the input html: <input type="image" src="images/btn_preview.gif" value="preview" name="buttonPreview"/> Last line of the POST array in F...

Wordpress post image customization

Hello, I just started creating my first WP theme after doing the HTML/CSS. All good so far! Almost done in fact. One problem though: I want each post image to have a surround around them. I could include it in the image, but I'd rather that when I post an image, it sits inside the surround. I thought of offsetting a BG image on each po...

Logout: GET or POST?

This question is not about when to use GET or POST in general; it is about which is the recommended one for handling logging out of a web application. I have found plenty of information on the differences between GET and POST in the general sense, but I did not find a definite answer for this particular scenario. As a pragmatist, I'm in...

ZF Form refuses to POST

I'm perplexed by this. I have a login action that looks like this: public function loginAction() { $form = new Application_Form_Login; $form->setAction("/users/login"); $request = $this->getRequest(); var_dump($request->isPost()); if ($request->isPost() && $form->isValid($request->getPost())) { // snipped c...

PHP function to check if 2 variables are empty

I have an index page, I want it to include a page called splash.php and not display.php when a user lands on index.php, but once a user does something (sets a variable) ie if a user searches (variable "query") i want it to include display.php and not include splash.php What is wrong with this code? function hasGet() { return !empty...

Moving the Wordpress Publish Module

On the Wordpress dashborad page for writing a new/editing an existing post, is it possible to have the 'Publish' module appear at the bottom right (be the last module on the right) as a default, without having to drag and drop it there? I'm okay with changing the code in the core files, I just need to know how to do it ? ...

php socket http post not working

I'm trying to write a php script to send a http post request to a url. It doesnt seem to pass through for the server is not receiving it. Can anyone help? <?php function postXMLToURL ($server, $path, $xmlDocument) { $xmlSource = $xmlDocument; $contentLength = strlen($xmlSource); //$fp = fsockopen($server, 80); $fp = ...

Displaying POST Data with jQuery?

I'm using a flash webcam to take a picture. It works great and spits back a URL via POST. I'm coding in PHP and would like to display this POST data once it is recieved, the problem is that I dont re-load the page. I've looked around and I'm not sure to dynamically load this array of data. Where should I be looking? jQuery? Ah, Figur...