Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation quiz web redirection script

    hi,

    The script i have coded sends a user to a unique page based on their input. The problem i have is that when the form is filled out and sent it does not send the user in the right place where it is coded to goto.

    Im not sure why this is? I have attached my script, i think its to do with the answertext section.

    Thanks
    Kendals
    Attached Files Attached Files

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    there are two things that i see wrong. the first thing that i see wrong, is that the variable score is a number, but you're comparing it to letters. that's problem number one. the second thing that i see, is that your if-then statements are improperly constructed.

    if(score = ans[1],ans[4],ans[8])

    that's not valid code there. i think that what you're trying to do, so you'll have to explain what it is you want.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    New to the CF scene
    Join Date
    Oct 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    im trying to redirect the user depending on what answers they chose from the form. Theres 3,then 4 then 3 questions so about 30 odd different combinations to different website addresses i need to add in the if statement.
    All i need to script to do is check what values are being picked if they are a certain 3 combinations such as A D H then they will get taken to adh.html and so on.
    Im not sure like you said if i coded if properly. Im not sure how to fix it.

    Thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •