i put text box in one page and i not take id and name for that and i want get value of text box in other page how to get value of text box without id and name? hope someone help
A:
You don't need an ID on a textbox but you have to give it a name:
<form method="post">
<input type="text" name="username"></input>
<input type="submit" name="submit" />
</form>
In this case you can access the textbox' value after submit via $_POST['username']
halfdan
2010-09-13 10:20:10
A:
u should also use GET method to post a form n retrieve with the $_GET['name'] you should also use $_REQUEST['name']
Tejas1810
2010-09-13 10:25:22
Forms are typically sent over POST.
halfdan
2010-09-13 10:29:10