Form not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • CGPhotoMom
    Master Learner

    • May 2005
    • 35

    Form not working

    Hi, Sara sent me here from a support ticket to post html. My form quit working so I had to set up my contact.htp different temporarily until i get the contact.php fixed. I set the contact.php up to look like the rest of my pages but it is not sending the info to my email upon submit. Can you check it and tell me where I went wrong?


    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>contact.php</title>
    </head>
    <body text="#ffffff" bgcolor="#000000" $email="$HTTP_POST_VARS[email];" $mailto="contact@caringlaser.com" $mailsubj="Information Request" $mailhead="From: $emailn" $val)="each" $mailbody="Values submitted from web site form:n" .="$key : $valn">>
    <div style="left: 828px; position: absolute; top: 85px;">
    <img height="865" alt="" src="handu_01_06.jpg" width="191" align="top" border="0"> </div>
    <div style="z-index: 1; left: 526px; position: absolute; top: 105px;">
    <img height="30" alt="" src="button_bg_01_06.gif" width="1" align="top" border="0"> </div>
    <div style="z-index: 2; left: 313px; position: absolute; top: 181px;">
    <img height="20" alt="" src="icon_kuula_01_06.gif" width="20" align="top" border="0"> </div>
    <div style="z-index: 3; left: 413px; position: absolute; top: 184px;">
    <img height="14" alt="" src="rating0_01_06.gif" width="64" align="top" border="0"> </div>
    <div style="z-index: 4; left: 1px; position: absolute; top: 0px;">
    <img height="226" alt="" src="sitelogob1_01_06.jpg" width="576" align="top" border="0"> </div>
    <div style="z-index: 5; left: 135px; width: 829px; position: absolute; top: 177px; height: 27px;">
    <table cellspacing="0" cellpadding="0" border="0">
    <tbody>
    <tr>
    <td valign="top" align="left" width="134" height="22"><a href="/index.html">
    <img height="22" alt="http://www.caringlaser.com/index.html" src="bv01003.gif" width="134" align="top" border="border=0"></a></td>
    <td width="4">&nbsp;</td>
    <td valign="top" align="left" width="134" height="22"><a href="/Coppermine/index.php">
    <img height="22" alt="http://www.caringlaser.com/Coppermine/index.php" src="bv01004.gif" width="134" align="top" border="border=0"></a></td>
    <td width="4">&nbsp;</td>
    <td valign="top" align="left" width="134" height="22"><a href="/products.html">
    <img height="22" alt="http://www.caringlaser.com/products.html" src="bv01005.gif" width="134" align="top" border="border=0"></a></td>
    <td width="4">&nbsp;</td>
    <td valign="top" align="left" width="134" height="22"><a href="/services.html">
    <img height="22" alt="http://www.caringlaser.com/services.html" src="bv01006.gif" width="134" align="top" border="border=0"></a></td>
    <td width="4">&nbsp;</td>
    <td valign="top" align="left" width="134" height="22"><a href="/events.html">
    <img height="22" alt="http://www.caringlaser.com/events.html" src="bv01007.gif" width="134" align="top" border="border=0"></a></td>
    <td width="4">&nbsp;</td>
    <td valign="top" align="left" width="134" height="22"><a href="/contact.html">
    <img height="22" alt="http://www.caringlaser.com/contact.html" src="bv01008.gif" width="134" align="top" border="border=0"></a></td></tr></tbody></table></div>
    <div style="z-index: 6; left: 289px; width: 400px; position: absolute; top: 286px; height: 61px;">
    <p align="center"><font style="font-size: 18pt;" face="Arial" color="#e6e6fa">Thank you!
    <br>We will contact you shortly!</font> </p></div><!--P

    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "info@caringlaser.com.com";
    $mailsubj = "Information Request";
    $mailhead = "From: $emailn";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form:n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    $mailbody .= "$key : $valn";
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    -->
    </body>
    </html>
  • Maddog
    Lieutenant Colonel

    • May 2005
    • 514

    #2
    theres a few errors that I can see,

    why have you got the following

    <body text="#ffffff" bgcolor="#000000" $email="$HTTP_POST_VARS[email];" $mailto="contact@caringlaser.com" $mailsubj="Information Request" $mailhead="From: $emailn" $val)="each" $mailbody="Values submitted from web site form:n" .="$key : $valn">>

    doesn't that get changed by the php script at the end? ( BTW you have 2 ">>" only need one)


    and your missing

    ?>
    above the </body> tag to close the php script

    not 100% sure, but hope it helps
    www.bluevodaexchangelink.com
    BluevodaExchangeLink Help Center
    Bluevodaexchangelink Forum

    The only place for bluevoda site to be linked with!

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #3
      Form working on some computers

      Hi there,
      I have the following problem: I have set up a form in my site- http://navaldesign.info/contactform.html . I tested it, and everything was Ok, I am getting an answer email with all the correct answers from all the fields. So i published it. I get home and try it from my home computer. The only result I get is that Outlook Express gets started and prompts me with a blank message. I tried again from my office, everything ok. Tried again from home, the same problem. Does anyone have a clue ? Thanks
      Navaldesign
      Logger Lite: Low Cost, Customizable, multifeatured Login script
      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

      Comment

      • VodaHost
        General & Forum Administrator

        • Mar 2005
        • 12356

        #4
        use the php code that is on the same page as the form insructions.

        VodaHost

        Your Website People!
        1-302-283-3777 North America / International
        02036089024 / United Kingdom
        291916438 / Australia

        ------------------------

        Top 3 Best Sellers

        Web Hosting - Unlimited disk space & bandwidth.

        Reseller Hosting - Start your own web hosting business.

        Search Engine & Directory Submission - 300 directories + (Google,Yahoo,Bing)


        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #5
          Originally posted by VodaHost
          use the php code that is on the same page as the form insructions.
          Yes,ok, I shall figure out the solution. But do you really know why this happens?
          I also tried the form from other PCs too, and It works just great. Can you figure of any reason why it shouldn't work just from home computer?
          Navaldesign
          Logger Lite: Low Cost, Customizable, multifeatured Login script
          Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
          DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
          Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

          Comment

          Working...
          X