Jump to content

Recommended Posts

Posted

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.

Posted

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

Posted

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

  • 4 weeks later...
  • 2 months later...
Posted

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

Posted

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.

  • 3 weeks later...
Posted

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.

  • 1 month later...
  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...