Results 1 to 9 of 9

Thread: Password Protected

  1. #1
    Join Date
    Feb 2003

    Password Protected

    Hello everyone, I'm knew to all this and don't know the first thing about (java/Javascripting/ASP/. So was wondering if there was a kind soul in here that could help me out. I have just produced my first website for a driving instructor friend of mine.
    on the site there is 6 theory tests. with 35 questions to each test.

    I was wondering if there was a script that would allow me to only let the user go onto the next test if they had completed the number of points needed to pass the test they are completing?

    I.e there's 35 questions the user needs to score 30 correct to pass that test.
    what I wanted to do is if the score is 29 or less they won't be able to go onto the next test. And if they score 30 or more this then gives them a password to get to the next test... at the end of the test. Does this make sense? Hope someone could help me out here....Many Thanks in advance for any assistance you can give. Regards Tony.

    Ps You can see the site here.

  2. #2
    Join Date
    Jan 2003
    Dundee, Scotland
    Tony this can be done 2 ways. First way using server-side scripting such as ASP or client-side using JavaScript. Personally i would do this using server-side scripting using ASP. If you decide to go server-side with this then you would need a database to store your questions, answer and results. You would have your page build the questions on-the-fly, then when submitted the answers given are cross referenced witht he answers in the database and the correct answers are totaled up, the the user is redirected to the correct page. On the JavaScript side maybe Dave Clark can help you with this.
    Anyway post back which way you would like to do this and then we can go from there.

  3. #3
    Join Date
    Feb 2003


    Hi Thanks for the quick reply. as I said, I know nothing about scripting at all, so I would also need help in putting on the site? Anyway would be okay but I would need help in explaining in Basic terms how I would apply it to the site....

    Many thanks again Tony.

  4. #4
    Join Date
    Jan 2003
    Dundee, Scotland
    do you have your questions all ready?
    Are all the questions multiple chose?
    Is yes then how many answers per question?
    does the amount of answers vary for every question?
    Are the questions going to change at any time?
    Do you want to store the results anywhere?
    Does the user get a copy of the answers he/she submitted?

    This may sound an easy task but it would take a lot of coding. The best way to approach this is to think about the questions about. Then if you decide to do this server-side then you need to get your database ready for your questions and answers.

    If you do decide to use a database just let me know and i will give you a normalized table structure for you to work with. You would need to find out which database will suit you best for this task, maybe you are already using one for the site.
    Last edited by Ribeyed; 02-12-2003 at 08:43 AM.

  5. #5
    Join Date
    Feb 2003


    Hi Ribeyed

    If you look at the site, You'll see the theory test as it is.
    And you'll get a better Idea of what i'm after?


  6. #6
    Join Date
    Feb 2003


    Here it is again.....


  7. #7
    Join Date
    Jan 2003
    Dundee, Scotland
    looked at your site, sorry for not doing earlier. I donít get what you need. I did part of the test and your JavaScript looks like its working fine.
    The only thing is if you did this with ASP it would be very complex but you would possible be about to do all the tests from 1 or 2 pages. If you would like us to see what happens when we get 30 out of 35 please can you post the answers to the questions because that was too much trying to answer them, lol.
    Last edited by Ribeyed; 02-12-2003 at 09:54 AM.

  8. #8
    Join Date
    Feb 2003

    Hi Again

    Well when you finish the test at the moment. there is just a popup message saying how many you scored out of 35.

    But you can do all six tests even if you don't pass them. What I wanted to do is only let them do the next test once they have passed the previous one. Make any sense? Or do you think it would be to much hassle doing this???

    Many thanks again Tony.

  9. #9
    Join Date
    Feb 2003


    Ribeyed, I know what you mean about the answers...........I wrote the tests but still bloody failed them

    How can you work that out

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



X vBulletin 4.2.2 Debug Information

  • Page Generation 0.20660 seconds
  • Memory Usage 2,916KB
  • Queries Executed 13 (?)
More Information
Template Usage (32):
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_global_above_footer
  • (1)ad_global_below_navbar
  • (1)ad_global_header1
  • (1)ad_global_header2
  • (1)ad_navbar_below
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)ad_thread_first_post_content
  • (1)ad_thread_last_post_content
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)headinclude_bottom
  • (9)memberaction_dropdown
  • (1)navbar
  • (4)navbar_link
  • (1)navbar_moderation
  • (1)navbar_noticebit
  • (1)navbar_tabs
  • (2)option
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available (6):
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files (26):
  • ./showthread.php
  • ./global.php
  • ./includes/class_bootstrap.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/functions_navigation.php
  • ./includes/class_friendly_url.php
  • ./includes/class_hook.php
  • ./includes/class_bootstrap_framework.php
  • ./vb/vb.php
  • ./vb/phrase.php
  • ./includes/functions_facebook.php
  • ./includes/functions_calendar.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_notice.php
  • ./packages/vbattach/attach.php
  • ./vb/types.php
  • ./vb/cache.php
  • ./vb/cache/db.php
  • ./vb/cache/observer/db.php
  • ./vb/cache/observer.php 

Hooks Called (70):
  • init_startup
  • friendlyurl_resolve_class
  • init_startup_session_setup_start
  • database_pre_fetch_array
  • database_post_fetch_array
  • init_startup_session_setup_complete
  • global_bootstrap_init_start
  • global_bootstrap_init_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • load_show_variables
  • load_forum_show_variables
  • global_state_check
  • global_bootstrap_complete
  • global_start
  • style_fetch
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • strip_bbcode
  • friendlyurl_clean_fragment
  • friendlyurl_geturl
  • forumjump
  • cache_templates
  • cache_templates_process
  • template_register_var
  • template_render_output
  • fetch_template_start
  • fetch_template_complete
  • parse_templates
  • fetch_musername
  • notices_check_start
  • notices_noticebit
  • process_templates_complete
  • friendlyurl_redirect_canonical
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • memberaction_dropdown
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • build_navigation_data
  • build_navigation_array
  • check_navigation_permission
  • process_navigation_links_start
  • process_navigation_links_complete
  • set_navigation_menu_element
  • build_navigation_menudata
  • build_navigation_listdata
  • build_navigation_list
  • set_navigation_tab_main
  • set_navigation_tab_fallback
  • navigation_tab_complete
  • fb_like_button
  • showthread_complete
  • page_templates