pls help me
php datei
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | <?php defined ( 'main' ) or die ( 'no direct access' ); $title = $allgAr [ 'title' ]. ' :: Sponsor' ; $hmenu = 'Sponsor' ; $design = new design ( $title , $hmenu ); $design ->header(); $tpl = new tpl ( 'sponsor.htm' ); $tpl ->out(0); if (isset( $_POST [ 'submit' ])){ $sem = '^[a-z0-9_\.-]+@[a-z0-9_-]+\.[a-z0-9_\.-]+$' ; if ( empty ( $_POST [ 'Name' ])){ echo "<font color=\"#FF0000\">Es wurde kein Name eingetragen!</font><br /><br />" ; } if ( empty ( $_POST [ 'URL' ])){ echo "<font color=\"#FF0000\">Es wurde keine URL eingetragen!</font><br /><br />" ; } if ( ! eregi ( $sem , $_POST [ "Was wollen sie sponsorn" ]) ){ echo "<font color=\"#FF0000\">sie müssen noch eintragen was sie sponsorn wollen</font>" ; } else { $fehler = "<br />Bestellung wurde erfolgreich abgesendet<br /><br />" ; $Info = "Name: " . $_POST [ "Name" ] . "\n" . "URL: " . $_POST [ "URL" ] . "\n" . "was wollen sie sponsorn: " . $_POST [ "was wollen sie sponsorn" ] . "\n" .; } } $tpl ->set_out( 'fehler' , $fehler ,1); $design ->footer(); ?> |
htm datei
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | <html> <head> <title>sponsor<title> <style> </style> </head> <body> <h1>Sie wollen uns sponsorn??? Dann Füllen sie es bitte aus.</h1> <form method="post" action="index?sponsor.php"> <table> <tr> <td>Name*</td> <td><input type="text" size="20" name="Name" maxlength="20"</td> </tr> <tr> <td>URL*</td <td><input type="text" size="20" name="URL" maxlength="50"></td> </tr> <tr> <td>Was wollen<br>sie <br>sponsorn???</td> <td><textarea name="was wollen sie sponsorn" rows="7" cols="20"></textarea></td> </tr> </table> <p><input type="submit" value="Absenden"</p></form> </body> <html> |
Zuletzt modifiziert von -GoA][-Sniper am 07.01.2008 - 17:06:05