I have this little input box that when folks enter the id, they will be able to edit the record with that corresponding id. This should be simple enough, but it's just not working. What I want it to do is when people enter 1 into the box, it should go to edit.php?id=1.
<form name="idedit" method="post" action="edit.php?id=???">
Enter Id # <input name="id" type="text" value="" class="ibox2">
<input type="submit" value="GO" name="idedit" class="subbox">
On that edit.php?id=???, I need something there don't I? I tried $id, but it just comes back with $id. I need it to be identical to the one entered by the end user.
For my edit.php:
//dbconnection
$row = mysql_fetch_array($ret);
$id = $row["id"];
I'm probably doing something really stupid. All I want it to do is pull up the record for editing that corresponds to a value entered into a form input box that is on a different page.
Any help would be greatly appreciated. Thank you.