Hey guys... I'm a pretty new programmer, and I wonder if anyone can give help me. I would like to right a js 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 js 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>
<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>