Search form and PHP
#1
Any experts out there? Creating a search form which will pass 2 variables to PHP, it's the passing I'm struggling with. Can anyone tell me how to pass the name and/or description that a user types in the search fields?
Code so far is:
<form name="form1" method="post" action="/html/search.php?prod='$prod_name">
<p>Name:
<input type="text" name="prod_name">
<br>
Description:
<input type="text" name="description">
<br>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
Code so far is:
<form name="form1" method="post" action="/html/search.php?prod='$prod_name">
<p>Name:
<input type="text" name="prod_name">
<br>
Description:
<input type="text" name="description">
<br>
<input type="submit" name="Submit" value="Submit">
</p>
</form>
Thread
Thread Starter
Forum
Replies
Last Post