lundi 13 avril 2015

How do i get my results to display on the same page?

I want the data which i am searching for to display on the same page.


For example when i write the word chocolate into the search query, the word chocolate, should be pulled out of my SQL database (Which it does).


But the result is displayed on a new page. I would appreciate it if someone could tell me the method or code to display the results on the same page in which i searched it for. Thanks.


Below is the code i have used :)



<form method="post" action="Onlinefooddata.php">
<input name="searchquery" type="text" size="50" />
<input type="submit" name="submit" value="Search!" />
</form>

Aucun commentaire:

Enregistrer un commentaire