script for 'test' or 'quiz' on webpage?

7 replies
Hey there,

I'm looking for a simple script that forwards the user to
different pages depending on what choice they made
in a simple test.

Example:

-------------------------------------------------
"Hey, which of the following are you, click ONE:

a)
b)
c)

just tell me where to send the results of the test (squeeze email)"
-------------------------------------------------

and then, depending on which one they click, I want the script

a) to sign the user up to the appropriate aweber list (list a, b or c) and
b) to forward to the appropriate result page: "hey, you chose (whatever they chose), therefore this is you: ....., and this is what you need to do now....

any thoughts?

Veit
#quiz #script #webpage
  • Profile picture of the author JohnMcCabe
    Veit, here's one way I've done it...

    If you check most opt-in forms, you'll see they usually have a hidden variable to set a list ID. You can use your a, b, c choices to set that variable. When they submit the form with their email, it goes to list a, b or c depending on which option they chose. Then use the redirect function of the list program to send them to page a, b or c as appropriate.
    {{ DiscussionBoard.errors[1863847].message }}
  • Profile picture of the author Kris Turner
    Eben Pagan released something like this for free during a launch a long time ago - I think it was called "Psychic Salesletter" or something similar. I'm not sure if it's still up anywhere. I have it downloaded, but I've never used it...
    Signature

    {{ DiscussionBoard.errors[1863926].message }}
    • Profile picture of the author VeitSchenk
      Alex,

      yep, I downloaded that too (I think it was a "refer 7 gazillion friends and you'll get my script" deal..) and me too, never installed it, now can't find it, doh.

      John, yep, that's what I had in mind. Now I just need to find a way of transferring a multiple choice box into the hidden variable ....

      ah well, better look for Eben's script one more time...

      UPDATE: found the script, it creates TONS of javascript and only produces code for getresponse, not aweber.

      I think, all I need is a simple piece of HTML which figures out which option was clicked in the multiple choice box and then submit to one of 3 different aweber lists....


      Veit

      Originally Posted by Alex Taylor View Post

      Eben Pagan released something like this for free during a launch a long time ago - I think it was called "Psychic Salesletter" or something similar. I'm not sure if it's still up anywhere. I have it downloaded, but I've never used it...
      Signature

      Connect with me on FB: https://www.facebook.com/veitschenk

      {{ DiscussionBoard.errors[1871658].message }}
      • Profile picture of the author nzjav05
        Originally Posted by VeitSchenk View Post

        I think, all I need is a simple piece of HTML which figures out which option was clicked in the multiple choice box and then submit to one of 3 different aweber lists....
        Yep, that is the best method for a novice coder.

        Just have it in html, and then redirect user based upon choice. <--- Can just use javascript onclick function for this. (Just use div's with the onclick function to make things even easier).
        {{ DiscussionBoard.errors[1871734].message }}
      • Profile picture of the author JohnMcCabe
        Originally Posted by VeitSchenk View Post

        John, yep, that's what I had in mind. Now I just need to find a way of transferring a multiple choice box into the hidden variable ....
        ...

        I think, all I need is a simple piece of HTML which figures out which option was clicked in the multiple choice box and then submit to one of 3 different aweber lists....


        Veit
        Veit, you have a couple of choices if you want to keep things simple. Most of the cut and paste form code you get should have something like this:

        Code:
        <input type=hidden name=list value=1>
        to identify which list the form should add the sub to.

        Instead of using a hidden field with the value, you can have the user select which list using either radio buttons or check boxes.

        Radio buttons are best if you want them to only be able to choose one list. Remove the piece of code with the hidden variable and replace it with the choice code. The code for that would look something like this:

        Code:
        I am interested in:
        
        <input type="radio" name="list" value="a" /> A
        <input type="radio" name="list" value="b" /> B
        <input type="radio" name="list" value="c" /> C
        Check boxes are best if you want them to be able to choose one or more lists. Remove the piece of code with the hidden variable and replace it with the choice code. The code for that would look something like this:

        Code:
        I am interested in:
        
        <input type="checkbox" name="list" value="a" /> A
        <input type="checkbox" name="list" value="b" /> B
        <input type="checkbox" name="list" value="c" /> C
        You can find a nice tutorial and more examples here:

        HTML Forms and Input
        {{ DiscussionBoard.errors[1872098].message }}
  • Profile picture of the author VeitSchenk
    hey guys,

    thanks for the excellent advice -- this time I've gone with what I
    tell my guys: "if you can't find the answer in 5mins, go to the forum,
    if you can't find the answer there in another 5mins, outsource."

    so, I've outsourced the whole thing for a few bucks and can focus
    on building a list again...


    thanks again for the input

    Cheers

    Veit

    PS: depending on how "messy" the code is at the end, I might share it here
    Signature

    Connect with me on FB: https://www.facebook.com/veitschenk

    {{ DiscussionBoard.errors[1876135].message }}
  • Profile picture of the author VeitSchenk
    guys, I had one programmed,
    here it is:
    http://www.warriorforum.com/war-room...eber-only.html

    except, right now hostgator are having trouble with my server (there's what you get when you're going with $10/month hosting, lesson learned ....), so if you get a 404 right now, that's why. The script is there.

    Veit
    Signature

    Connect with me on FB: https://www.facebook.com/veitschenk

    {{ DiscussionBoard.errors[1882750].message }}

Trending Topics