Solved

A form choosing a web page.

Posted on 1999-01-06
5
163 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

792 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