Page 1 of 1
Search form with radio buttons
Posted: Mon Feb 09, 2004 2:18 pm
by mmcfadden
I am trying to duplicate the Thunderstone Form at
http://www.thunderstone.com/texis/site/ ... earch.html. I have multiple collections, profiles and scrips and would like a form to allow for a radio button to modify the profile and the script used.
Search form with radio buttons
Posted: Mon Feb 09, 2004 3:00 pm
by mark
Basically that's a separate vortex script (or a function within another script) that takes the user's choice and redirects to the proper url. Something like this (where "which" is the name of the radio button):
<switch $which>
<case "manual"><strfmt
"
http://yoursite/texis/webinator/search/ ... l&query=%U"
$query>
<default><strfmt
"
http://yoursite/texis/webinator/search/ ... t&query=%U"
$query>
</switch>
<header name=Location value=$ret>
Search form with radio buttons
Posted: Mon Feb 09, 2004 4:07 pm
by mmcfadden
Is the only way to accomplish this by using another script? Is there way to have the form pass the profile and search term along to the script?
Search form with radio buttons
Posted: Mon Feb 09, 2004 4:49 pm
by John
You can simply have radiobuttons with NAME="pr" and values for each of the profiles. They will all go to a single script though.