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

check radio button display different page.

Status
Not open for further replies.

ncwei

Programmer
Aug 20, 2001
6
MY
i have 4 radio button and a submit button.
each radio button will link to different page.that's mean:
if i click submit button,will link to page depends on which radio button i checked.
anybody have any idea?
 
With ASP? take the value of the radio button, and do a redirect. You could do it just as easily with JavaScript, by setting document.location.href
 
Here's a little syntax:

<input type=radio name=location value=&quot;myPage.asp&quot; onClick=&quot;fillLocation(this.value);&quot;>

<input type=button value=&quot;Submit&quot; onClick=&quot;movePage();&quot;>

then the javascript:

//globalVariable
var url;

function fillLocation(thisURL){
url = thisURL;
}

function movePage(){
location = url;
}
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top