Hi, i'm using the search form to get search results from a PHP file.
What should i write in the PHP file in order to get the keyword. I
assumed it is using POST method but it get nothing. my
$_POST['keyword']variable returns nothing.
HTML:
<form id="searchForm" class="dialog" action="search.php">
<fieldset>
<h1>Search Application</h1>
<a class="button leftButton" type="cancel">Cancel</a>
<a class="button blueButton" type="submit">Search</a>
<input type="text" placeHolder="Enter Keywords" name="keyword"/>
</fieldset>
</form>
PHP:
<?
$search = $_POST['keyword'];
$result = mysql_query("some kind of query");
?>
<ul title="Results">
<li><? echo $search?></li>
<?
while ($a = mysql_fetch_array($result))
{
echo '<li>'.$a['name'].'</li>';
}
?>
</ul>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---