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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:59:07+00:00 2026-06-12T01:59:07+00:00

Hello i am writing a calculator in PHP and php is working fine, Now

  • 0

Hello i am writing a calculator in PHP and php is working fine, Now what i want is to get value from users.

Im not sure what im missing or i have to use any JS file to do it. I have inbuilt value set $v = 1000000; but i want user to set value as per there need. Also want inbuild remain for defualt user. I think im not using correct way for form.

html

<form action="index.php" method="Get">
Value: <input type="text" name="v" />
<input type="submit" />
</form>

php

<?php
$i = 0;
$v = 1000000;
do {
    $i++;
    $pay  = round($v + $i);
    echo "<tr><td><b>Value</b> $" . number_format($v) . "</td><tr>";
    $v = $v + $bid;
} while ($i <= 5);
?>

I have modified and hide my other personal codes 🙂

fixed: $v = isset($_GET['v']) ? (int)$_GET['v'] : 1000000;

Thanks in advance
live : http://ffsng.deewayz.in/

  • 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-06-12T01:59:09+00:00Added an answer on June 12, 2026 at 1:59 am

    As your form uses $_GET you have to assign that to your $v variable, but with condition, if isset.

    Change:

    $v = 1000000;
    

    to:

    $v = isset($_GET['v']) ? (int)$_GET['v'] : 1000000;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello i want to know the email id is working or not. for example
Hello I'm writing a little Android app (Version 2.3.3). Now i get this strange
Hello internet techno-persons, I am writing a project for users to create documents from
Hello again, stackoverflow community! I'm working on writing a simple blog system in Rails,
Hello all I am working on javascript jquery and svg.I want to ask a
hello i'm writing a GM user script and i want to change the favicon
I am reading Hello Android book and I am writing the code from the
hello i am writing a java program to remove all comment from a string
Hello All I am writing some software that will allow users to create their
I'm writing a very simple bbcode parse. If i want to replace hello i'm

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.