Ok... I am doing this project just for test purposes. I have two submit buttons , one with the value of "Test 1" and one with the value of "Test Two" , both with the name of "test" , what I would like to do is echo the value of the submit button pressed. For instance, if you press the button with value of Test One , it will echo on the PHP page "Test One".
Here is the HTML I have:
Here is the PHP I have:Code:<form action="process.php method="post"> <input type="submit" name="test" value="Test 2"><br><input type="submit" name="test" value="Test 1"></form>
It is not echoing the value. Why am I having this issue?PHP Code:
<? echo $_POST['test']; ?>