Solved

A form choosing a web page.

Posted on 1999-01-06
5
148 Views
Last Modified: 2010-04-09
I want to build a simple form with radio buttons that when you choose no will take you to one page and if you choose yes will take you to another.  My server doesn't support cgi scripts, and I would prefer to make it compatible to netscape 2.02 but netscape 3 will do just fine.
0
Comment
Question by:isilver
  • 3
  • 2
5 Comments
 
LVL 4

Expert Comment

by:ruperts
ID: 1841406
I've done one with drop a drop down box...

Its at www.rest.demon.co.uk/fruit

I know its not radio buttons, but if you want that I can extract the JAVASCRIPT for you!
0
 
LVL 1

Author Comment

by:isilver
ID: 1841407
I like what you did, however I would prefer it to use bullets.  If it doesn't get answering in a few days, I will give you points because that is the best I have seen so far.
0
 
LVL 4

Accepted Solution

by:
ruperts earned 100 total points
ID: 1841408
Yippe done it!

<HTML>
<HEAD>
</SCRIPT><TITLE>Document_Title</TITLE>
</HEAD>
<BODY>
<form>
  <p><input type="radio" name="R1" value="V2"  ONCLICK="window.location.replace('page1.html')">Go to Page 1</p>
  <p><input type="radio" name="R1" value="V3" ONCLICK="window.location.replace('page2.html')">Go to Page 2</P>      </select></p>
    </form>
</BODY>
</HTML>

change the .replace to .yourwindow name if you are using frames! And you want a different target name.
0
 
LVL 1

Author Comment

by:isilver
ID: 1841409
that works great thanks a lot man
0
 
LVL 4

Expert Comment

by:ruperts
ID: 1841410
Sorry...
Just one thing...
Remove the </select> tag at the end of line 9 (I think)
and the </script> tag from line 3..

I got carried away!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jquery, html5 UI 1 61
How can i make a popup form from clicking on a button 4 36
Centering Vertically 3 26
Centered Image 2 18
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to define a gradient in CSS. Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Gradient. Define the background as "linear-gradient(to right, #ee3668, black)". Ensure you …
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now