need a little help with jquery and php

here is my code:
[php]<?
$a=$db(“SELECT * FROM infoadd ORDER by name ASC”);
$x = 1;
while($b = mysql_fetch_assoc($a))
{

$name=str_replace("_", " ", $b[‘name’]);
?>

<form method=post id=testform<? echo$b['id']; ?> action=index.php?do=order><? echo $name; ?> <input type=hidden name=id id=target<? echo$b['id']; ?> value=<? echo$b['id']; ?>><input type=text id=“targ<? echo$b['id']; ?>” name=order value="<? echo"{$_POST['order']}"; ?>" onblur=“blurs()”> <? $x++; if ($x % 1 == 0) { echo " "; } } ?>

[/php]
I have been trying everything, I need the filled in with database values, that works. now my problem is I want jquery to post the data from the two input fields when I leave the input field, or onblur. for some reason it is showing that no matter what input I leave it is posting id=159&order=
it is not actually retrieving the info from the input, it is always retrieving the info from the last input .
What am I doing wrong?

Sponsor our Newsletter | Privacy Policy | Terms of Service