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

  • SEARCH
  • Home
  • 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 3968644
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T03:52:05+00:00 2026-05-20T03:52:05+00:00

http://localhost:8888/test.php I typed in the above URL to navigate to a blank php file

  • 0
http://localhost:8888/test.php

I typed in the above URL to navigate to a blank php file I’d created, and my friend typed the following in my URL bar:

?one=3&two=18 

(after /test.php)

He said that when I refresh the page, he wants to see the number 21 show up. I’m not entirely sure where to start. Any help for this PHP beginner is appreciated.

Thanks!

  • 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-20T03:52:05+00:00Added an answer on May 20, 2026 at 3:52 am

    Try this…

    <?php
    
    if (isset($_GET['one']) AND isset($_GET['two'])) {
    
        $one = (int) $_GET['one'];
    
        $two = (int) $_GET['two'];
    
        echo $one + $two;
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is what I am trying to accomplish: location.replace('http://localhost:8888/test/index.php?site=' + document.URL); So I need
I have a tapestry url that looks like http://localhost:8888/forwardtask/88 how do i get the
I am passing variables to another page with this urlencoded string http://localhost:8888/proseat/index.php/configure/ve/Honda/Civic+%28sedan%29/2007 and when
WCF will match this: http://localhost:8888/test/blahFirst/blahSecond/sdfsdf,wwewe to this: [OperationContract] [WebGet( UriTemplate = test/{first}/{second}/{val1},{val2} )] string
Here is the code I have, <script language=JavaScript> var url = http://localhost:8888/uploads/+<? $name ?>+/output.txt;
I have a flash file (full link to flash looks like http://localhost:8888/PROJECT/swf/audio/player.swf ) which
Using Restlet, how can I retrieve the attributes passed in the URL? Example: http://localhost:8888/contacts/123
When I run bundle exec rake jasmine then browse to http://localhost:8888/ I see the
My urls for posts in WordPress looks like this: http://localhost:8888/blabla/book/yes-vi-testar Using the_permalink() would generate
When I look under http://localhost:8888/_ah/admin/ I can see that every entry in datastore has

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.