PageRenderTime 17ms CodeModel.GetById 15ms app.highlight 0ms RepoModel.GetById 2ms app.codeStats 0ms

/redirect.php

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