Reply to Re: php.. drvivng me around the bend..

Your name:

Reply:


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...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация