Passing value from forms
Posted: Wed Jul 13, 2005 12:22 am
I have a search box, and search button which will submit on itself. I want my data to appear on my URL, how can i possibly do that?
Sample Search Entry: EA-1B-N1
Result: http://www.mysite.com/mypage.php?id=erj ... b]EA-1B-N1[/b]
Here's my partial code:
What will i add on my search variable?
I tried $_REQUEST['search'], i know im doing this wrong, i just want some advise on how i should go about with this one.
Thank you in advance.
Sample Search Entry: EA-1B-N1
Result: http://www.mysite.com/mypage.php?id=erj ... b]EA-1B-N1[/b]
Here's my partial code:
Code: Select all
echo "<table width=100% align='center'><form name='searchitem' method='post' action='".$PHP_SELF."?id=$getlink&search=."'>
<tr>
<td><div align='center'>
<input name='search' type='text' maxlength='30' class='loginbox'>
</div></td>
<tr>
<tr>
<td><div align='center'>
<input name='searchbtn' type='Submit' class='loginbtn' value='Search Item'>
</div></td>
</tr></form>
</table><br>";I tried $_REQUEST['search'], i know im doing this wrong, i just want some advise on how i should go about with this one.
Thank you in advance.