ok so I have a form being echoed out using php call from database, I am trying to get it to post the data of two input fields id and order so I gave them both the same id, well take a look at this code and if you can help me that would be great
[php]
<?
$a=$db("SELECT * FROM infoadd ORDER by name ASC");
$x = 1;
while($b = mysql_fetch_assoc($a))
{
$name=str_replace("_", " ", $b[‘name’]);
?>
<? echo $name; ?> value=<? echo$b['id']; ?>> name=order onblur="blurs()" value=""> |
<?
$x++;
if ($x % 2 == 0) { echo "
"; }
}
?>
[/php]
since there is several rows of inputs you will see that I added
[php]<? echo$x; ?> and $x++[/php] they help create the loop and give unique identifiers to everything
what I want to be able to do is when I am writing in the inputs, on blur I want it to post the data from the hidden field "id" and the field I write in "order"
so then I can be updating the database as I am filling out the form