|
Posted by jonathan.beckett on 02/15/06 17:38
I've seen a pre-built friends-reunited solution before, and I'm
wondering if that's the one you're using.
Anyway...
Normally you put a form in the page that calls another page, and make
it "post" it's data..
Example - in your page with the search form...
<form method="POST" action="search.php">
<input type="text" name="search" size="20">
<input type="submit" value="Go!">
</form>
then in search.php, the $_POST variables have the contents of the form,
which you might access like this...
$search = $_POST["search"];
.... and then you might do something with the database...
$sql = "SELECT * FROM users WHERE foo LIKE
'%".mysql_escape_string($search)."%'";
Hope that makes some sense...
Navigation:
[Reply to this message]
|