I need to create a page that will send a user to one of three different pages depending on which button is selected.
If I someone could help me with the code on this I would greatly appreciate it.
Is there a way of adapting this code so that the radio button picked can change the style sheet for the page to what the user would like it to be? (eg You could have three external style sheets using different colour backgrounds, fonts etc and the user could choose the colours they'd like to see the page use?).
Julianne,
It is possible only for a page that will be loaded after the style is chosen with radio buttons.
You'll need javascript to write [tt]<link rel="stylesheet" type="text/css" href="style_page1.css">[/tt] dynamically according to selection made.
To pass the value of selected radio button you have to use one of the methodes of passing the variables in URL and getting it from there.
So there are 4 steps:
1. pick up the value of selected radio button
2. pass it with url to another page
3. on a new page read the value passed
4. write style source according to the value passed
This seems to be the most easy way to do what you want.
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.