Jump to content

need help with search forum


darklexus2k9

Recommended Posts

well as the title says i need help with the search forum on my site

 

it is just a simple search forum

 

<forum action="search.php" >
<input type="text" id="search" value="enter search word" >
<input type="button" id="submit" value="submit" >
</forum>

 

well it works file but next to the text box i need a drop down menu in that menu i need some options like photos / music / art wen a member clicks one of these i need the word to be added to there search tearm

 

so if that type in the text box the word old and then chose the word art from the drop down menu the word Art will be added to the end of old so that the text box mow shows old art is the possible if so how can it be done

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/174385-need-help-with-search-forum/
Share on other sites

  • 4 weeks later...

firstly there are no such things as <forum></forum> tags in html

 

I think you mean <form></form>

 

secondly depending on where you are searching (im assuming a database) what you are asking can be achieved with javascript and the onchange event of the drop down menu OR and probably the better option with a php script that appended the search criteria before searching the database.

 

have a go at it and post the code you come up with if you need help

good luck.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.