![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 9 Pomógł: 0 Dołączył: 12.05.2011 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
bardzo proszę o sprawdzenie kodu - zrobiłem formularz php, ale coś chyba albo przeoczyłem, albo sam już nie wiem.. główkuje już za długo;/ Bardzo proszę o pomoc. Kod php: CODE <?PHP if(isset($_POST['submit'])) { $mailnadawcy = $_POST['mailnadawcy']; $mail = "kowalski@gmail.com"; $theme = "Catering"; $body = $_POST['body']; $name = $_POST['name']; itd... $notice = $_POST['notice']; $header = "Od: ". $mailnadawcy . ""; if ($_SERVER['REQUEST_METHOD'] == 'POST') { $body = "From: $mailnadawcy\n Name: $name\n E-mail: $email\n Phone: $phone\n Best time to call: $time_call\n itd.... Notice: $notice\n "; mail($mail, $theme, $body, $header); header('location: catering.html'); }} ?> A to kod z HTMLa CODE <form action="send.php" method="post" > <fieldset> <legend>Contact Details</legend><br /> <div id="pola_01"> <label>Name: </label><span class="reds"></span><input type="text" name="name" size="25"/> </div> itd... <br /> <legend>Order</legend> <table class="basic_lines"> <tr> <th scope="col">Details</th> <th scope="col">Appetizers</th> <th scope="col">Entrees</th> </tr> <tr> <th scope="row"># Vegetarian</th> <td><input type="text" name="veg_app" size="2" /></td> <td><input type="text" name="veg_entre" size="2" /></td> </tr> itd. </table><br/> <br /> <legend>Optional</legend><br /> <div id="pola_01"> <label>% Vegetarian: </label><span class="reds"></span><input type="text" name="vegan_percent" size="25"/> </div> <legend>Notice</legend> <div id="pola_01"> <textarea name="notice" cols="45" rows="3"></textarea> </div> <div id="pola_04"> <input type="reset" name="clear" class="reset" value="Clear " /> </div> <div id="pola_04"> <input type="submit" name="submit" class="submit" value="Send " /> </div> <br /> <br /><br /> <br /> </fieldset> </form> </div> Dzięki serdecznie i pozdrawiam Ten post edytował s4v4g3 12.05.2011, 08:16:19 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 11:49 |