Advertisement
corovino

Untitled

Nov 23rd, 2015
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. error_reporting(E_ALL);
  3. @extract($_POST);
  4. $require = "name,email,mobile,mensaje";
  5. $name = stripslashes($name);
  6. $email = stripslashes($email);
  7. $mobile = stripslashes($mobile);
  8. $mensaje = stripslashes($mensaje);
  9. $adminaddress = "cotizaciones@aeroviajespacifico.com, comercial1@aeroviajespacifico.com";
  10. $siteaddress ="http://www.aeroviajespacifico.co/";
  11. $sitename = "AeroViajesPacifico";
  12. $date = date("m/d/Y H:i:s");
  13. if ($REMOTE_ADDR == "") $ip = "no ip";
  14. else $ip = getHostByAddr($REMOTE_ADDR);
  15. $dcheck = explode(",",$require);
  16. while(list($check) = each($dcheck)) {
  17. if(!$$dcheck[$check]) {
  18. $error .= "Falta $dcheck[$check]<BR>";
  19. }
  20. }
  21. if($error) {
  22.  
  23.   echo "funciono";
  24.  
  25. }else{
  26.    echo "no funciono";
  27. }
  28.  
  29. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement