/redirect.php

https://bitbucket.org/denissilva/cgpdi_admin · PHP · 18 lines · 15 code · 1 blank · 2 comment · 2 complexity · db714ecb7d67133c0d4eba478314e37e MD5 · raw file

  1. <?php
  2. if(isset($_POST['submit'])){
  3. // Fetching variables of the form which travels in URL
  4. $name = $_POST['name'];
  5. $email = $_POST['email'];
  6. $contact = $_POST['contact'];
  7. $address = $_POST['address'];
  8. if($name !=''&& $email !=''&& $contact !=''&& $address !='')
  9. {
  10. // To redirect form on a particular page
  11. header("Location:https://www.formget.com/app/");
  12. }
  13. else{
  14. ?><span><?php echo "Please fill all fields.....!!!!!!!!!!!!";?></span> <?php
  15. }
  16. }
  17. ?>