Jump to content

searchform.php?


eduard

Recommended Posts

When do you use searchform.php?
Based on the file name you chose, I would guess you want to use it then getting specific data from the database based on the query given from the search box. But really if you don't know what you want to do with the file you created why create it at all? Edited by ckrudelux
Link to comment
Share on other sites

What doesn't tell us more then your first post. Could you be more specific on what you need help with? Continuing on my guess from before: Then making a from in HTML you have a action attribute action should be pointing at searchform.phpThe data from the form is collected in the searchform.php with the $_GET and $_POST variables. Where the index key is the name of the input field in your html. example:
<input type="text" name="searchquery" />

$_GET['searchquery']

Edited by ckrudelux
Link to comment
Share on other sites

I don't get how a file name and a search for a filename is supposed to tell us anything about what you need help with, what you are trying to do, or what you are having problems with. If you have a question, just ask it. It's never seemed to stop you before.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...