How do I send a user to a separate web page depending on what combination of checkboxes are clicked? e.g. if I've got 3 checkboxes then I'll have 7 different pages (ignoring all boxes being left blank). This is driving me mad so I'd appreciate any suggestions.
Try this solution. You can easily make it to 4 checkboxes. You only have to add the 4th checkbox and the variables d, ad, bd, cd, abd, acd, bcd, abcd LOL
Of course Anikin is right about having 5 checkboxes or more
Here is my code. I hope you like it:
<html>
<head>
</head>
<body>
<script language="javascript">
function opensite()
{
var endvalue = "";
var DM = document.MyForm1;
var NrCbs = DM.cb1.length;
var a = "google.com";
var b = "yahoo.com";
var c = "CNN.com";
var ab= "microsoft.com";
var ac= "netscape.com";
var bc = "W3.org";
var abc = "tek-tips.com";
var preURL = "
It would be normally, Turkbear, but for this project I have to let people select what they want. It would just be a bit messy with loads of URL's all over the place, especially when they're titled "click here if you want this and that but not the other, etc."
This would be a great security feature (if it wasn't client side script). You could have just a page with a bunch of checkboxes and one button. The only way to get to the next page is know the correct checkboxes to select. Unfortunately anyone that knows "view source" would be able to determine the correct boxes and the "trick" is up.
But in theory that sure sounds fun Einstein47 (Love is like PI - natural, irrational, endless, and very important.)
in the address bar but you don't actually go anywhere! Am I missing something obvious? I've been through the code with a toothcomb but can't see what could be wrong.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.