Guest User

Untitled

a guest
May 26th, 2018
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.54 KB | None | 0 0
  1. <?php
  2. include("global.inc.php");
  3. $errors=0;
  4. $error="The following errors occured while processing your form input.<ul>";
  5. pt_register('POST','Name');
  6. pt_register('POST','Address');
  7. pt_register('POST','Post_Code');
  8. pt_register('POST','City');
  9. pt_register('POST','Telephone');
  10. pt_register('POST','Email');
  11. pt_register('POST','Number_Acount');
  12. if( $Name=="" || $Address=="" || $Post_Code=="" || $City=="" || $Telephone=="" || $Email=="" || $Number_Acount=="" ){
  13. $errors=1;
  14. $error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
  15. }
  16. if($errors==1) echo $error;
  17. else{
  18. $where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":"")."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"));
  19. $message="Name: ".$Name."
  20. Address: ".$Address."
  21. Post_Code: ".$Post_code."
  22. City: ".$City."
  23. Telephone: ".$Telephone."
  24. Email: ".$Email."
  25. Number_Acount: ".$Number_Acount."
  26. ";
  27. ?>
  28.  
  29.  
  30. <!-- This is the content of the Thank you page, be careful while changing it -->
  31.  
  32. <h2>Thank you!</h2>
  33.  
  34. <table width=50%>
  35. <tr><td>Name: </td><td> <?php echo $Name; ?> </td></tr>
  36. <tr><td>Address: </td><td> <?php echo $Address; ?> </td></tr>
  37. <tr><td>Post_Code: </td><td> <?php echo $Post_Code; ?> </td></tr>
  38. <tr><td>City: </td><td> <?php echo $City; ?> </td></tr>
  39. <tr><td>Telephone: </td><td> <?php echo $Telephone; ?> </td></tr>
  40. <tr><td>Email: </td><td> <?php echo $Email; ?> </td></tr>
  41. <tr><td>Number_Acount: </td><td> <?php echo $Number_Acount; ?> </td></tr>
  42. </table>
  43. <!-- Do not change anything below this line -->
  44.  
  45. <?php
  46. }
  47. ?>
Add Comment
Please, Sign In to add comment