I have a question in regards to getting a value from a text box before actually submitting the form (and getting it in a variable)
Example:
<form method="post" action="nextpage.php">
<input type="text" name="value1">
.....(further down the page)....
I want to build a sql statement based on what the user entered in the text box value1
$sql=mysql_query("select * from TABLE where VALUE="VALUE ENTERED IN TEXT BOX ABOVE");
Any Ideas?
Thanks.
Example:
<form method="post" action="nextpage.php">
<input type="text" name="value1">
.....(further down the page)....
I want to build a sql statement based on what the user entered in the text box value1
$sql=mysql_query("select * from TABLE where VALUE="VALUE ENTERED IN TEXT BOX ABOVE");
Any Ideas?
Thanks.