Hi guys. I have a question.
If I have many form codes with same name like these:
And if I click on the submit button, would the result $_POST['Name'] will change depending on the button that I click?Code:<form action="reservedata.php" method="post"> <input type="text" name="Name" /> <input type="submit" value="reserve" name="button1" /> </form> <form action="reservedata.php" method="post"> <input type="text" name="Name" /> <input type="submit" value="reserve" name="button2" /> </form> <form action="reservedata.php" method="post"> <input type="text" name="Name" /> <input type="submit" value="reserve" name="button3" /> </form>
For example, the three textboxes have different values like "George", "Paul" and "Andrew".
If I click on the button1, would the result be "George" or if I click on the button 2 would the result be "Andrew"?




Reply With Quote