XPlumpedXLipsXandXArsenicX Posted December 7, 2007 Posted December 7, 2007 How so you use forms to make something like a personality quiz or a test online? I can easily use quiz crators, but I want to build my own quiz format from the ground up...please help!
ShannenName Posted December 8, 2007 Posted December 8, 2007 Well first read a book about HTML or at least and online tutorial.
XPlumpedXLipsXandXArsenicX Posted December 10, 2007 Author Posted December 10, 2007 I have a nice enough HTML bok, and it explains basic use and creation of forms. However, what I need to know is how to direct users to certain pages based on the consistency of choices in the form. (Mostly A choices to page 1, Mostly B choices to page 2, etc.)
ShannenName Posted December 12, 2007 Posted December 12, 2007 Well for this I think you will need to go into PHP so if you want to read a PHP book or tutorial or if you don't have time just reply here and I will make it for you.
AverageJoe Posted December 13, 2007 Posted December 13, 2007 I would look into php or javascript. From what you are saying it sounds like you are going to have the person directed to a page depending on their answer, where is this is not what you want. You want to edit the page based on their answer. Joe
ShannenName Posted December 13, 2007 Posted December 13, 2007 You could do either, change the page based on the answers or redirect based on answers, it depends if you want a single cluttered file or a nicely set out 2+ files. It just depends on the ratio of cluttered file:more files you want, I recommend for what you want 2 pages of php would be good
Prash Posted January 10, 2008 Posted January 10, 2008 w3schools.org go on php form easy but dont jsut copy their script make ya own
JcX Posted April 4, 2008 Posted April 4, 2008 Please go for some online tutorials before asking on forums. There's no free meal given in this world! After you gained your basic knowledge in HTML, PHP. I believe you will get your idea well-developed
meriadoc Posted April 9, 2008 Posted April 9, 2008 The majority of us are here because we have an interest in web site design and development. I would agree that XPlumped... should do a little leg work before asking, but it could be that they have no idea of how to even get started. Most of us are here because we have an interest in web design and/or development. Discussing something like html forms may reveal a new technique or some functionality not everyone knew. The one thing I would caution though is when someone asks what looks like a homework question. I don't think this is the case here, but you will never learn how to code if someone does it for you. Experience is the best teacher. Okay, off my soapbox and back to the original question. This is just a stab at the logic behind the scenes. If I wanted to direct someone to a page based on what was selected I would use either threshold values or a simple count with the winner taking the prize. By assigning numeric values to each multiple choice letter you could set up a compound if to decide which page should follow. For example, if you assign A=1, B=2, C=3, D=4 you could loop through the answers and tally up the selections to get a value. That value would then be compared to threshold values in a compound if statement to send them onto the desired page. In a 10 question survey, a score of 10-19 might send you to the "A" page. In the counting method the majority wins, but you do have to figure out what to do in ties. The threshold method doesn't have that drawback. This was just a quick stab at an answer and there are plenty of other ways to do it. I'd probably go javascript, but others might be more comfortable with php or VB in an asp or asp.NET application.
spoonbeater8p Posted April 28, 2008 Posted April 28, 2008 sounds like you could use a database and certainchoices exclude options.
JcX Posted April 30, 2008 Posted April 30, 2008 I think PHP is easier to learn. Together with MySQL, it would be easy. Submit query, retrieve data from database and echo it. That's all. But if you have some basic in javascript. It saves time on scripting though. Both with pros and cons.
spoonbeater8p Posted April 30, 2008 Posted April 30, 2008 yah, you could use mysql, but instead of php i would try asp.net, if you can do that.
Dream Posted June 19, 2008 Posted June 19, 2008 for the basic one, use <form></form> maybe you could use javascript to make some checking or effect
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now