Support forum login

©2006-2012 IAAI Software

Contact Us Privacy Policy

Adding Drop-Down menu to searchform.php ?

Submitted by madstock on Wed, 2006-02-01 17:00.

Searchform.php currently passes $q to search.php - I would like (as an example) to be able to have the form pass $q to

search2.php - to search another page - e.g. MIVA listings
search3.php - to search another - e.g. white label Amazon

by means of a drop-down menu or radio button - this is easy enough to do with javascript, but I wouldn't have a clue how to edit searchform.php to do this - would anyone please be able to help??

Cheers!

Submitted by support on Fri, 2006-02-03 15:31.

Hi madstock,

Is it simply required to submit the form to a different address; or do you need the JavaScript to modify the name of the variable aswell?

Submitted by madstock on Fri, 2006-02-03 20:22.

** EDIT **

Please excuse me acting like an idiot! Whilst typing what I wanted below, I realised that all I needed to do was to pass the query through a jump page - no need for any javascript or indeed any mucking about!

Apologies for wasting time...

>> Original Message
>>Hi,

>>'Tis simply to submit the term to a different page (i.e. append ?q=searchterm to a different page than search.php e.g. websearch.php or auctionsearch.php)

>>Thanks!