Results 1 to 1 of 1

Thread: PHP Web Form PLEASE HELP!!

  1. #1
    Join Date
    Apr 2010
    Posts
    7

    PHP Web Form PLEASE HELP!!

    Hi I'm creating this website for my wife's bakery business, but for some apparent reason after I've added all the different form addy's whatever you call them just won't seem to want to, to my e-mail with all the corresponding info. LIke my e-mail i'll get but it comes in blank.
    Also when it gets send to my e-mail, it'll get put inside the my Junk e-mail folder, not my inbox. Here's my code if somebody could help with it, thanks, very much appreciated.

    This would be my PHP code first then HTML after

    The e-mail and URL I just put as xxxxxxx for privacy that's all, don't take it personal. Just won't function right thats all, please help. Thanks.

    PHP CODE
    PHP Code:
    <?php
      $name 
    $_REQUEST['name'] ;
      
    $phone $_REQUEST['phone'] ;
      
    $alternate $_REQUEST['alternate'] ;
      
    $email $_REQUEST['email'] ; 
      
    $two_dozen $_REQUEST['two_dozen'] ;
      
    $three_dozen $_REQUEST['three_dozen'] ;
      
    $four_dozen $_REQUEST['four_dozen'] ;
      
    $five_dozen $_REQUEST['five_dozen'] ; 
      
    $quantity $_REQUEST['quantity'] ;
      
    $velvet $_REQUEST['velvet'] ;
      
    $chocolate $_REQUEST['chocolate'] ;
      
    $vanilla $_REQUEST['vanilla'] ;  
      
    $packaging $_REQUEST['packaging'] ;
      
    $date $_REQUEST['date'] ;
      
    $delivery $_REQUEST['delivery'] ;
      
    $address $_REQUEST['address'] ;
      
    $city $_REQUEST['city'] ;
      
    $message $_REQUEST['message'] ;

      
    $message "Name: $name, Phone: $phone, Alternate Number: $alternate, Email: $email, two_dozen: $two_dozen, three_dozen: $three_dozen, four_dozen: $four_dozen, five_dozen: $five_dozen, Quantity: $quantity, Velvet: $velvet, Chocolate: $chocolate, Vanilla: $vanilla, Packaging: $packaging, Date: $date, Delivery: $delivery, Address: $Address, City: $city";

      
    mail"xxxxxxxx@xxxxxx.com""Feedback Form Results",
        
    $message"From: $email);
      
    header"Location: http://www.xxxxxxxxxxx.com" );
    ?>
    HTML Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    
    <form action="sendmail2.php" method="post" class="news_title style2">
       <p><span class="style3">Your name: *<br />
        <input name="name" type="text" />
        <br />
        <br />
        Phone Number:<br />
      <input name="phone" type="text" />
        <br />
        <br />
        Alternate Number: <br />
      <input name="alternate" type="text" />
        <br />
        <br />
        E-mail Address:<br />
        <input name="email" type="text" />
        <br />
        <br />
         Quantity (min 2 dozen): <br />
         2 Dozen
         <input name="2dozen" type="checkbox" />
        <br />
       </span><span class="style3">
         3 Dozen
         <input name="3dozen" type="checkbox" />
         <br />
        4 Dozen
        <input name="4dozen" type="checkbox" />
         <br />
        5 Dozen
        <input name="5dozen" type="checkbox" />
            <br />
            Other
        <input name="quantity" type="text" />
         <br />
         <br />
        Cake flavor:<br />
        <br />
        Red Velvet
        <input name="velvet" type="checkbox" />
        <br />
         Chocolate     
         <input name="chocolate" type="checkbox" />
        <br />
        Vanilla     
        <input name="vanilla" type="checkbox" />
        <br />
        <br />
        Packaging – basket, individually wrapped<br />
         <input name="packaging" type="text" />
        <br />
        <br />
        Date of Event:<br />
        <input name="date" type="text" />
        <br />
        <br />
        Time of pick-up or delivery (<strong>extra charges will apply</strong>):  <br />
         <input name="delivery" type="text" />
         <br />
         <br />
        Address: <br />
        <input name="address" type="text" />
         <br />
        <br />
        City:<br />
        <input name="city" type="text" />
         <br />
        <br />
        Additional Comments: </span><br />
         <textarea name="message" rows="6" cols="40">
         </textarea>
         <br />
         <input type="submit" />
      </p>
    </form>
                                                                    
    </body>
    </html>
    Last edited by is_numeric; 01 Oct 2010 at 09:28 AM. Reason: code tags added

Similar Threads

  1. Replies: 0
    Last Post: 18 Aug 2010, 10:57 AM
  2. Looking For an Affordable Web Site Hosting Plan
    By seotips in forum Web Hosting and Domain Names
    Replies: 0
    Last Post: 10 Apr 2009, 02:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •