Announcement

Collapse
No announcement yet.

contact form does not work

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • contact form does not work

    Hi,
    My contact form does not function and I am not sure why. Can someone help? www.carysavage.com

  • #2
    Re: contact form does not work

    post the code for "action.php"

    Register/Login Script
    Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

    Comment


    • #3
      Re: contact form does not work

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
      <HTML>
      <HEAD>
      <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
      <TITLE>action</TITLE>
      <META name="GENERATOR" content="Created by BlueVoda">
      <STYLE type="text/css">
      div#container
      {
      width: 1000px;
      position: relative;
      margin-top: 0px;
      margin-left: auto;
      margin-right: auto;
      text-align: left;
      }
      body
      {
      text-align: center;
      margin: 0;
      }
      </STYLE>
      <SCRIPT type="text/javascript">
      <!--
      function SwapImage()
      {
      var doc=document, args=arguments;
      doc.$imgSwaps = new Array();
      for(var i=2; i<args.length; i+=2)
      {
      var elem=FindObject(args[i]);
      if(elem)
      {
      doc.$imgSwaps[doc.$imgSwaps.length]=elem;
      elem.$src=elem.src;
      elem.src=args[i+1];
      }
      }
      }
      function FindObject(id, doc)
      {
      var child, elem;
      if(!doc)
      doc=document;
      if(doc.getElementById)
      elem=doc.getElementById(id);
      else
      if(doc.layers)
      child=doc.layers;
      else
      if(doc.all)
      elem=doc.all[id];
      if(elem)
      return elem;
      if(doc.id==id || doc.name==id)
      return doc;
      if(doc.childNodes)
      child=doc.childNodes;
      if(child)
      {
      for(var i=0; i<child.length; i++)
      {
      elem=FindObject(id,child[i]);
      if(elem)
      return elem;
      }
      }
      var frm=doc.forms;
      if(frm)
      {
      for(var i=0; i<frm.length; i++)
      {
      var elems=frm[i].elements;
      for(var j=0; j<elems.length; j++)
      {
      elem=FindObject(id,elems[i]);
      if(elem) return elem;
      }
      }
      }
      return null;
      }
      // -->
      </SCRIPT>
      </HEAD>
      <BODY background="background black.jpg" bgcolor="#FFFFFF" text="#000000"
      <?PHP
      $email = $HTTP_POST_VARS[email];
      $mailto = "carysavage********.com";
      $mailsubj = "Contact Form Submission";
      $mailhead = "From: $email\n";
      reset ($HTTP_POST_VARS);
      $mailbody = "Values submitted from web site form :\n";
      while (list ($key, $val) = each ($HTTP_POST_VARS))
      {
      if ($key!="submit")
      {
      $mailbody .= "$key : $val\n";
      }
      }
      mail($mailto, $mailsubj, $mailbody, $mailhead);
      ?>
      >
      <DIV id="container">
      <DIV style="position:absolute;left:53px;top:150px;width :134px;height:394px;z-index:0" align="center">
      <TABLE border="0" cellpadding="0" cellspacing="0">
      <TR>
      <TD align="left" valign="top" width="134" height="22"><A href="http://www.carysavage.com"><IMG id="bv01034" src="bv01034.gif" alt="http://www.carysavage.com" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01034','bv01034_over .gif')" onmouseout="SwapImage(0,0,'bv01034','bv01034.gif') "></A></TD>
      </TR>
      <TR><TD height="40"></TD></TR><TR>
      <TD align="left" valign="top" width="134" height="22"><A href="http://www.carysavage.com/biography.html" target="_blank"><IMG id="bv01035" src="bv01035.gif" alt="http://www.carysavage.com/biography.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01035','bv01035_over .gif')" onmouseout="SwapImage(0,0,'bv01035','bv01035.gif') "></A></TD>
      </TR>
      <TR><TD height="40"></TD></TR><TR>
      <TD align="left" valign="top" width="134" height="22"><A href="http://www.carysavage.com/mp3.html"><IMG id="bv01036" src="bv01036.gif" alt="http://www.carysavage.com/mp3.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01036','bv01036_over .gif')" onmouseout="SwapImage(0,0,'bv01036','bv01036.gif') "></A></TD>
      </TR>
      <TR><TD height="40"></TD></TR><TR>
      <TD align="left" valign="top" width="134" height="22"><A href="http://www.carysavage.com/videos.html"><IMG id="bv01037" src="bv01037.gif" alt="http://www.carysavage.com/videos.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01037','bv01037_over .gif')" onmouseout="SwapImage(0,0,'bv01037','bv01037.gif') "></A></TD>
      </TR>
      <TR><TD height="40"></TD></TR><TR>
      <TD align="left" valign="top" width="134" height="22"><A href="http://www.carysavage.com/concerts.html"><IMG id="bv01038" src="bv01038.gif" alt="http://www.carysavage.com/concerts.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01038','bv01038_over .gif')" onmouseout="SwapImage(0,0,'bv01038','bv01038.gif') "></A></TD>
      </TR>
      <TR><TD height="40"></TD></TR><TR>
      <TD align="left" valign="top" width="134" height="22"><A href="http://www.carysavage.com/links.html"><IMG id="bv01039" src="bv01039.gif" alt="http://www.carysavage.com/links.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01039','bv01039_over .gif')" onmouseout="SwapImage(0,0,'bv01039','bv01039.gif') "></A></TD>
      </TR>
      <TR><TD height="40"></TD></TR><TR>
      <TD align="left" valign="top" width="134" height="22"><A href="http://www.carysavage.com/lessons.html"><IMG id="bv01040" src="bv01040.gif" alt="http://www.carysavage.com/lessons.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01040','bv01040_over .gif')" onmouseout="SwapImage(0,0,'bv01040','bv01040.gif') "></A></TD>
      </TR>
      </TABLE>
      </DIV>
      <IMG src="guitar2.jpg" alt="" align="top" border="0" width="310" height="414" style="position:absolute;left:345px;top:259px;widt h:310px;height:414px;z-index:1">
      <DIV style="position:absolute;left:309px;top:192px;widt h:383px;height:38px;background-image:url(background black.jpg);z-index:2" align="left">
      <FONT style="font-size:32px" color="#C0C0C0" face="Script MT Bold">Thank you for your message.</FONT><FONT style="font-size:32px" color="#C0C0C0" face="Solid Antique Roman">&nbsp; </FONT>
      </DIV>
      <DIV style="position:absolute;left:222px;top:22px;width :555px;height:119px;background-image:url(5335535.gif);z-index:3" align="center">
      <FONT style="font-size:96px" color="#C0C0C0" face="Solid Antique Roman"><B>Cary Savage</B></FONT>
      </DIV>
      </DIV>
      </BODY>
      </HTML>

      Comment


      • #4
        Re: contact form does not work

        Hmm, i don't see anything wront with the code, its not giving an error correct?, its just not sending either?

        Try changing this line...
        mail($mailto, $mailsubj, $mailbody, $mailhead);

        to

        if(mail($mailto, $mailsubj, $mailbody, $mailhead))
        echo "Email Sent";
        else
        echo "Email Not Sent";

        this will display a message if the email was sent or not sent.


        If it says it is sending then my best guess is that the php mail() function is disabled for outgoing mail, which means you will need to use SMTP or another method to send emails to get it to your hotmail. Or you can just have it sent to an email on your domain, which should go through.

        Register/Login Script
        Do you use a Password Protected Directory? Need a way to allow users to make their own account, try my .htaccess Login Script

        Comment


        • #5
          Re: contact form does not work

          Hi thanks for the advice but when I tried to do any changes, absolutely nothing happens when I push submit.

          Comment


          • #6
            Re: contact form does not work

            Your form doesn't work because both the text area (Message) and the submit button, are outside the form area.
            Extend the form area to cover those two elements. Then, select the textare and the submit buton, copy them, and delete them.
            Paste them back in your page, using the Paste icon (not the right click paste, nor the Edit > Paste.

            This will result in getting back those two elements in the exact position where they were, and they will now belong to the form.

            Test your form.
            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


            • #7
              Re: contact form does not work

              If it says it is sending then my best guess is that the php mail() function is disabled for outgoing mail, which means you will need to use SMTP or another method to send emails to get it to your hotmail. Or you can just have it sent to an email on your domain, which should go through
              Hi Watdaflip,

              the php() function is now (since 8 months) by default enabled on all VH servers.
              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


              • #8
                Re: contact form does not work

                Thank you very much. It works now, thanks to your advice.

                Comment

                Working...
                X