ljt3759
Regular Member
- Nov 18, 2009
- 228
- 100
I'm making a search engine, and I need the words that are inputted in the search form to be posted into a php function for example:
someone searches harry potter I would like it to be posted into the keywords bit, would that simply mean the search engine form would be
therefore the
Could anyone help me with this? I only know certain bits of PHP and not that much. Any help would be great. 
- Lewis
someone searches harry potter I would like it to be posted into the keywords bit, would that simply mean the search engine form would be
PHP:
<form action="search.php" method="post">
<input type="text" name="searchterm" />
<input type="submit" />
</form>
PHP:
<?php $Amazon=new Amazon(); $parameters=array( "region"=>"com",
"AssociateTag"=>'affiliateTag', 'ResponseGroup'=>'Images', "Operation"=>"ItemSearch",
"SearchIndex"=>"Books", "Keywords"=>"harry potter" );
$queryUrl=$Amazon->getSignedUrl($parameters); echo $queryUrl; ?>
therefore the
PHP:
"keywords"=>"$_POST["searchterm"]
- Lewis
Last edited: