Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form>
- <input type="email" name="email" />
- <input type="text" name="phone" />
- <button>Send</button>
- </form>
- $name = trim($_GET["name"]);
- $phone = trim($_GET["phone"]);
- <form method="POST">
- <input type="email" name="email" />
- <input type="text" name="phone" />
- <button type="submit" name="submit1">Send</button>
- </form>
- <form method="POST">
- <input type="email" name="email" />
- <input type="text" name="phone" />
- <button type="submit" name="submit2">Send</button>
- </form>
- <form method="POST">
- <input type="email" name="email" />
- <input type="text" name="phone" />
- <button type="submit" name="submit3">Send</button>
- </form>
- <?php
- if(!empty($_POST)){
- if(isset($_POST['submit1'])){
- var_dump($_POST);
- }elseif(isset($_POST['submit2'])){
- var_dump($_POST);
- }elseif(isset($_POST['submit3'])){
- var_dump($_POST);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement