tags:

views:

26

answers:

2

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
A: 

u should also use GET method to post a form n retrieve with the $_GET['name'] you should also use $_REQUEST['name']

Tejas1810
Forms are typically sent over POST.
halfdan