To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.castleOpen lugnet.castle in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Castle / 11752
  Help With HTML
 
Hi. I need some sort of code that, when you answer questions, based on your answers it will take you to another page. Like a quiz. Like if i asked you "What's your favorite color, and you said green, it would take you to 1.html. But if you said blue (...) (23 years ago, 18-Jan-02, to lugnet.castle)
 
  Re: Help With HTML
 
(...) Hmm I think you'll need more than just HTML to get that to work. Forms (the "container" your questions sit in) are usually hooked up to CGI programs that interpret the results of the questions and act accordingly. You'll probably hafta write (...) (23 years ago, 18-Jan-02, to lugnet.castle)
 
  Re: Help With HTML
 
(...) I put a couple of short samples, both using javascript, that do what I think you want at (URL) uses a select list for the answers, and (URL) uses radio buttons for the answers. The code for these is <html> <head> <title>choose a color</title> (...) (23 years ago, 18-Jan-02, to lugnet.castle, lugnet.publish.html)
 
  Re: Help With HTML
 
Jay: If I follow your needs correctly it sounds like what you want to do is in the way of what are called "forms" in html. You could probably choose any of a number of ways of allowing color selections: menus, checkboxes, etc. The main worry is that (...) (23 years ago, 18-Jan-02, to lugnet.castle)
 
  Re: Help With HTML
 
Thank you so much John, the site part I needed it for is up if you want to use it and see how it came to be. (...) (23 years ago, 18-Jan-02, to lugnet.publish.html)
 
  Re: Help With HTML
 
(...) <snip of John Herre's good, working code> Note that a Javascript implementation will only work for users who have Javascript turned on, so you need to either catch that somehow[1] or have a note on the page indicating the Javascript (...) (23 years ago, 18-Jan-02, to lugnet.publish.html)

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR