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 9 of 9
  1. #1
    New Coder
    Join Date
    May 2004
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Javascript Questionnaire

    Hi, I need to make a Javascript questionnaire because of a market research project that im running.

    E.G...I need it to be something like:

    ======================

    Q1: What is your favourite colour?

    A. Blue
    B. Red
    C. Yellow

    Q2: What is your favourite food?

    A. Pizza
    B. Kebab
    C. Chips
    D. Other (if other please specify below)

    Submit Questionnaire

    ====================

    Then if possible after they submit their answers can I sort of have it show up as a poll?

    Do u know of any scripts?

    Any help much appreciated!!!!!

    Emma!

  • #2
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    This should be done server-side. JavaScript could do the validation but so could the server-side.
    PHP would probably let you do it easily.
    Here are some free(mostly) scripts you can take a look at:
    http://www.hotscripts.com/PHP/Script...ls_and_Voting/

  • #3
    New Coder
    Join Date
    May 2004
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the site but after I can really find what i'm looking for.

    I though maybe that I could have it where people answers questions and then it would show up on a %scale system...etc.

    Thanks for your help anyway!

  • #4
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile Bore da

    Quote Originally Posted by emma896
    I though maybe that I could have it where people answers questions and then it would show up on a %scale system.
    you won't be able to use JS for this, i'm afraid, since it won't be able to garner everyone else's answers. you have to post the info to a server app (PHP, ASP, JSP, whatever your host or server supports/has installed really), and then re-display the results after submission.

    as FCI pointed out, you can use JS to do some validation. but you'll still need to do it serverside, too, just in case JS has been disabled.

    btw: my brither and family are in Rhos-on-Sea. say hylo if you can LOL
    *keep it simple (TM)

  • #5
    New Coder
    Join Date
    May 2004
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Oh right....thanks....didn't know that...

    Bore da to you aswell!

    Rhoss on sea.....I take my dogs out on that beach....lol

    Got any ideas how I go about making one via PHP or whatever it is?

    Sorry...im ok with a bit of javascript then im lost!

    Thanks Anyway!

    Emma.

  • #6
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by emma896
    Got any ideas how I go about making one via PHP or whatever it is?
    first of all, you need to find out if your host's server has PHP installed, and if not what kind of serverside programming is allowed. there's not much point proceeding if they don't.

    now, if they do, you maybe want to take some time to get to know the basics of the language (it's more complicated, tho not necessarily more difficult than) JS.

    once, you've done that, go back to the website FCI sent you to, and use one of the scripts uploaded to it: you'd prolly be best going for the one labelled "Easy PHP Poll" or else the one immediately below. otherwise, find a PHP forum (either on this site) or www.phpbuilder.com and ask for some help.
    *keep it simple (TM)

  • #7
    New Coder
    Join Date
    May 2004
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the site...That should help me what I need to do.

    I haven't paid for the website hosting yet....am just getting it designed now.

    So I need to make sure that they have PHP for hosting..

    Thanks for that tip....

  • #8
    Senior Coder
    Join Date
    Feb 2004
    Location
    Edinburgh
    Posts
    1,352
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by emma896
    So I need to make sure that they have PHP for hosting.
    yes, you do.

    however, most paid hosting sites have PHP installed. i use Supanames. Plug Socket is also highly recommended. these two are relatively inexpensive and offer different rates to suit different budgets.

    i'm sure you'll have no problems with PHP. it's kinda from the same family of languages as JS and so you should feel quite familiar with some of its syntax and style. good luck
    *keep it simple (TM)

  • #9
    New Coder
    Join Date
    May 2004
    Posts
    16
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by jbot
    yes, you do.

    however, most paid hosting sites have PHP installed. i use Supanames. Plug Socket is also highly recommended. these two are relatively inexpensive and offer different rates to suit different budgets.

    i'm sure you'll have no problems with PHP. it's kinda from the same family of languages as JS and so you should feel quite familiar with some of its syntax and style. good luck
    Thanks! You've been a helpfull!

    I learn new things everyday on the web....lol


  •  

    Posting Permissions

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