I am using the .post ajax method on a form. I use the following jquery code:

$("form#changeinfo").submit(function(){
$.post("ownerdetails.php", { 
name: $("#name").val() });
});

So when the form with the id of changeinfo is submitted it posts information
to ownerdetails.php. But when I write my php in ownerdetails.php and try to
get the value of name it doesnt work. my php is simple just to test:

$name = $_POST['name'];
echo $name;

This does nothing even though there is a value in the field. Its as if
nothing is posted to the server. Any ideas?
          
-- 
View this message in context: 
http://www.nabble.com/.post-tp17213804s27240p17213804.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.

Reply via email to