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 80575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T21:19:27+00:00 2026-05-10T21:19:27+00:00

I’m trying to make a calculator that will take inputs from users and estimate

  • 0

I’m trying to make a calculator that will take inputs from users and estimate for them how much money they’ll save if they use various different VoIP services.

I’ve set it up like this:

<form method='get' action='voip_calculator.php'>   How much is your monthly phone bill?      <input name='monthlybill' type='text' value='$' size='8'>    <p><input type='submit' name='Submit' value='Submit'>   </p> </form> 

On voipcalculator.php, the page I point to, I want to call ‘monthlybill’ but I can’t figure out how to do it. I also can’t figure out how to make it do the subtraction on the numbers in the rows.

This may be very simple to you but it’s very frustrating to me and I am humbly asking for a bit of help. Thank you!

Here is the relevant stuff from voip_calculator, you can also click on the url and submit a number to see it in (in)action. I tried various times to call it with no success:

<table width='100%;' border='0' cellspacing='0' cellpadding='0'class='credit_table2' >  <tr class='credit_table2_brd'>     <td class='credit_table2_brd_lbl' width='100px;'>Services:</td>     <td class='credit_table2_brd_lbl' width='120px;'>Our Ratings:</td>     <td class='credit_table2_brd_lbl' width='155px;'>Your Annual Savings:</td> </tr>  Your monthly bill was <?php echo 'monthlybill' ?>  <?php echo '$monthlybill'; ?> <?php echo 'monthlybill'; ?> <?php echo '$monthlybill'; ?> <?php echo 'monthlybill'; ?>  <?php $monthybill='monthlybill'; $re=1; $offer ='offer'.$re.'name'; $offername= ${$offer}; while($offername!='') {     $offerlo ='offer'.$re.'logo';     $offerlogo=${$offerlo};     $offerli ='offer'.$re.'link';     $offerlink=${$offerli};     $offeran ='offer'.$re.'anchor';     $offeranchor=${$offeran};     $offerst ='offer'.$re.'star1';     $offerstar=${$offerst};     $offerbot='offer'.$re.'bottomline';     $offerbottomline=${$offerbot};     $offerca ='offer'.$re.'calcsavings';     $offercalcsavings=${$offerca};      echo '<tr >             <td >                 <a href=''.$offerlink.'' target='blank'>                     <img src='http://www.nextadvisor.com'.$offerlogo.'' alt=''.$offername.'' />                 </a>             </td>             <td >                 <span class='rating_text'>Rating:</span>                 <span class='star_rating1'>                     <img src='IMAGE'.$offerstar.'' alt='' />                 </span>                 <br />                 <div style='margin-top:5px; color:#0000FF;'>                     <a href=''.$offerlink.'' target='blank'>Go to Site</a>                     <span style='margin:0px 7px 0px 7px;'>|</span>                     <a href=''.$offeranchor.''>Review</a>                 </div>             </td>             <td >'.$offercalcsavings.'</td>           </tr>';     $re=$re+1;     $offer ='offer'.$re.'name';     $offername= ${$offer};  } ?> 

offercal(1,2,3,4,5,6,7)savings calls to a file called values.php where they are defined like this:

$offer1calcsavings='24.99'; $offer2calcsavings='20.00'; $offer3calcsavings='21.95'; $offer4calcsavings='23.95'; $offer5calcsavings='19.95'; $offer6calcsavings='23.97'; $offer7calcsavings='24.99'; 
  • 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. 2026-05-10T21:19:27+00:00Added an answer on May 10, 2026 at 9:19 pm

    You need to get the value from the QueryString and put it into a PHP variable.

    Like this:

    $monthlyBill = $_GET['monthlybill']; 

    Now the variable $monthlyBill contains the value from the QueryString.

    To display it:

    echo 'Your monthly bill is: $monthlyBill'; 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 105k
  • Answers 105k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I use PSPad - if you open a file from… May 11, 2026 at 8:44 pm
  • Editorial Team
    Editorial Team added an answer What version of Open office/MySQL and what Open Office application?… May 11, 2026 at 8:44 pm
  • Editorial Team
    Editorial Team added an answer With this HTML: <form method="post" action="getdata.php" id="foo"> <input type="text" name="data"… May 11, 2026 at 8:44 pm

Related Questions

I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I am currently running into a problem where an element is coming back from
Seemingly simple, but I cannot find anything relevant on the web. What is the
Configuring TinyMCE to allow for tags, based on a customer requirement. My config is
Is it possible to replace javascript w/ HTML if JavaScript is not enabled on

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.