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/