How to send multiple values through one form button Jul 4, 2008. 4. The Coders Lexicon. 4 ; php adding a button/analysing 11 ; Submit button not working 3 ; message box in c# web application 9 ; Passing parameters by clicking a link instead of a submit button 3 ; AJAX loaded form submit button not working with Live 4 5. When you press the first submit button the form POST method will send value “btn1” to the server and when you press the second button it will send value = “btn2” to the server. Another approach is that You can create and Use some session variable to achieve it easily. E.g. $_SESSION['validate']. HTML and PHP Code for butt... In writing the Self-posting scripts I needed a way to allow the user to send their HTML to either the next page for processing, or to a preview page so they could check first. You can change the form action by using formaction="page1.php" in button property .