I want to get the value of a textbox in PHP, and when I try this:
<form method=post action="update.php">
<input type="text" name="Hex" />
<input type="submit" value="OK" />
</form>
<?php
$test = $_POST['Hex'];
echo $test;
?>
I just get the error:
Undefined index: Hex
I've Googled to no avail; so please someone, help me!
update.php?error_reporting(E_ALL ^ E_NOTICE);before$test = ... Also, your form 'method' does not have 'brackets' ("post" instead of post).