Hi how do i read the data in the variable max in another class? (php)
<form method="POST" href="x.php"> <a href="submit()">Click here!<input name="max" type="hidden" value="yourValueformPHP"> </form>
Is the form right?
this is the code,
<form method="POST" action="http://localhost/x.php" > <input name="masterkey3" type="hidden" value=<?php echo $max; ?>> <input type="submit"> </form>
this is in the x class
$x= $_POST["masterkey3"];
But $x only holds the first word of the long string????????
your value needs to be in quotes to be valid.
<input name="masterkey3" type="hidden" value="<?php echo $max; ?>">