Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

A Script to redirects queries

Status
Not open for further replies.

3allawy

Programmer
Oct 19, 2005
28
CA
Hey guys... I'm a pretty new programmer, and I wonder if anyone can give help me. I would like to right a script that redirects queries (from the index page) to the proper location based on radio button selections from the user....Below is the form (implemented in the index for the retreiving the queries). Actually the thing that I cannot predict is that which field in the form below, I should use or pass to the script inorder to decide where should the query be redirected.


<label for="quicksearchBox">Search:</label> <input class="styledinput" tabindex="1" accesskey="S" type="text" name="q" id="quicksearchBox" size="9" /><input class="styledinput" tabindex="2" type="submit" value="Go" id="quicksearchButton" /><br /><br />

<p><input type="radio" accesskey="J" name="selectedSearch" checked="checked" value="J"/> Vanier College</p>

<p><input type="radio" accesskey="C" name="selectedSearch" value="C" /> Abbot University</p>
</form>


 
HTML is markup language, not a scripting one. Provided you put the urls in values of the radio buttons, that can be easily achieved via javascript. If not, there's some more switching to be done in JS, but not too much. Anyway, you need ask in javascript forum (forum216).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top