Hi... please help me guys... i am submitting a value into another page that verifies the id... but the problem is that the value could not be transmitted to the second page... can you guys help me... the code is below... thanks!!!!
<form method="POST" action="updatedealerinfo.php"> <p><input type="text" name="id" size="20"> <input type="submit" value="Submit"></p> </form>
There is nothing wrong that I can see with your form HTML. What does the code on the other side look like?
well, it doesn't give the info on the other side.... it should look like
updatedealerinfo.php?id=$id
on the other side so it can pass the variable on the other side... right?
Ok when you POST a form there is no change to the URL, if you want the URL to be www.somhost.com/somepage.php?somevariable=1 then you need to use a GET method in your form.
As for the variable being there or not, if your installation of PHP doesn't have register_globals turned on then $id won't exist (most installations of PHP no longer have this directive turned on because it's a big security hole). So to get your value you'd need to use $POST["id"] or $GET["id"] depending on what method you decided to use in your form.