pass a value from a .php file to other .php file
Posted: Wed Feb 25, 2009 10:46 am
Hello,
i have the following php file:
and i want to pass the value $bet*stake (number that user will type in the input number field of the form multiplied with my integer variable)
to the update.php file.
how do i do that?? im frustrated with the tutorials i googled.
thanks in advance.
i have the following php file:
Code: Select all
<html>
<head><title>win</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head>
<body>
<?php
$bet=2.75;
?>
<form method="post" action="update.php">
<input type="number" name="stake" size="5"/><br/>
<input type="submit" value="place"/></form>
</body><html>to the update.php file.
how do i do that?? im frustrated with the tutorials i googled.
thanks in advance.