/redirect.php
https://bitbucket.org/denissilva/cgpdi_admin · PHP · 18 lines · 15 code · 1 blank · 2 comment · 2 complexity · db714ecb7d67133c0d4eba478314e37e MD5 · raw file
- <?php
- if(isset($_POST['submit'])){
- // Fetching variables of the form which travels in URL
- $name = $_POST['name'];
- $email = $_POST['email'];
- $contact = $_POST['contact'];
- $address = $_POST['address'];
- if($name !=''&& $email !=''&& $contact !=''&& $address !='')
- {
- // To redirect form on a particular page
- header("Location:https://www.formget.com/app/");
- }
- else{
- ?><span><?php echo "Please fill all fields.....!!!!!!!!!!!!";?></span> <?php
- }
- }
- ?>