Skinderholm

Untitled

Apr 6th, 2011
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.59 KB | None | 0 0
  1. <?php
  2. include("/pages/forms.php");
  3.  
  4. function kontakt($name,$adr,$zip,$city,$mail,$txt){
  5.    if(isset($_POST['submitcontact'])){
  6.         if(!empty($name) && !empty($adr) && !empty($zip) && !empty($city) && !empty($mail) && !empty($txt)){
  7.             echo"<fieldset>Du tilmeldte dig med følgende oplysninger:<br />Navn: ".$name."<br />Adresse: ".$adr."<br />
  8.             Postnr. & by: ".$zip." ".$city."<br />Telefon: ".$mail."<br />E-mail: ".$txt."</fieldset>";
  9.         }else{
  10.             echo "fejl";
  11.                     };
  12.     };
  13. };
  14. kontakt(@$_POST['name'],@$_POST['adr'],@$_POST['zip'],@$_POST['city'],@$_POST['mail'],@$_POST['txt']);
  15.  
  16.    
  17.    
  18.    
  19.     ?>
Advertisement
Add Comment
Please, Sign In to add comment