Advertisement
Guest User

formAction.php

a guest
Dec 18th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. if (isset($_POST['submit']) && isset($_POST['enquiry']) && is_array($_POST['enquiry'])) {
  2. $business = $_POST['business'];
  3. $fullname = $_POST['fullname'];
  4. $email = $_POST['email'];
  5. $phone = $_POST['phone'];
  6.  
  7. foreach($_POST['enquiry'] as $enquiry) {
  8. // eg. "I have a grapefruit!"
  9. echo "I have a {$enquiry}!";
  10. // -- insert into database call might go here
  11. }
  12.  
  13.  
  14. echo "bus: ".$business." fullname: ".$fullname." email: ". $email. " phone: ".$phone;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement