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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to deal with Radio buttons

Status
Not open for further replies.

3allawy

Programmer
Oct 19, 2005
28
CA
Hi,

I have 2 radio buttons and a text field. Depending on the entered text and the SELECTED BUTTON, I will perform a certain action. My question is how would I refer to my radio buttons and the text field in another file..

<form id="quicksearch" name="quicksearch" action="/scripts/searchRouter.cfm" method="post">

<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>
 
Thx for replying but assume it is not cold fusion...assume is is html :)
 
My question is how would I refer to my radio buttons and the text field in another file.........

assume is is html

HTML is not a server side language. You will need a server side language to refer to these elements in another file. Since it appears you're using coldfusion, this would be a coldfusion question. If you were using ASP, it would be an ASP question. If you were using PHP, etc, etc, etc.

Bottom line: This is not an HTML question.

-kaht

How much you wanna make a bet I can throw a football over them mountains?
sheepico.jpg
 
3allawy said:
assume it is not cold fusion...assume is is html

Given that the extension of the page you are submitting your form to is ".cfm", it made perfect sense for me to assume that it was Cold Fusion, and no sense to assume it was HTML, since (a) HTML is NOT a server-side language, and (b) plain old HTML doesn't usually have the extension .cfm.

Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top