Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 566115
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T12:56:37+00:00 2026-05-13T12:56:37+00:00

I need to create a 10 page quiz for a mobile browser. It is

  • 0

I need to create a 10 page quiz for a mobile browser. It is only a mobile webpage, so no considerations need to be taken for other browsers.

Here’s the problem I’m having: I can’t use JavaScript, because not every mobile browser supports it. I’m not very skilled in other languages, but I thought perhaps something could be done in PHP as it is server-side.

If my first URL is domain and I enter the correct quiz answer, the URL to the next page could be domain/?p=1. The URL doesn’t need to do anything but hold a count of the number of correct results.

As for the actual code, I was thinking it could be included in the HTML itself, as I’m not very concerned about people viewing the source on their mobile phones.

Is it possible to write a line of code that increments the ‘p=’ attribute in the URL by one when clicked and only attach it to the correct answers?

Here’s an image of what I mean: http://i.imgur.com/HbJ5U.jpg

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T12:56:37+00:00Added an answer on May 13, 2026 at 12:56 pm

    And, what’s to stop me from manually incrementing the “correct answer” counter in my address bar?

    Do you not want to use a database because you don’t have one available to you in your hosting, or because you don’t know how?

    I’m not a fan of the idea, but you can get the number of “correct answers” with the following code.

    <?php 
        /* Gets current correct answer Count */ 
        $answer_count = $_GET["p"]; 
    
        /* checks to see if the submitted answer is the same as the correct answer */
        if ($_POST["submitted-answer"] == "correct-answer") {
            $answer_count++;
        }
    ?>
    

    Now, you just add the modified answer count to the link to the next question.

    <a href="link-to-next-question.php/?p=<?php echo $answer_count; ?>">Next Question</a>
    

    If this is “just for fun” I don’t see why you couldn’t do it like this. It’s definitely a simple way to solve the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create an ASP page (classic, not ASP.NET) which runs remote shell
I need to create a cherrypy main page that has a login area. I
I need to create a request for a web page delivered to our web
I need to create a screenshot of the page by providing a page URL
I need to create a backup of a SQL Server 2005 Database that's only
I need to be able to create a quiz type application with 20 some
Hii, I need to develop an online quiz website that would be having MCQs.
I have a Asp.net mvc applications and I need a create page. My class
I need to create a page that will load divs from an external page
In DNN 5, I need to: Dynamically create a page (programmatically) select a skin

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.