3 Replies Latest reply on Jun 30, 2008 9:28 AM by LMANNYR

    Help getting contact page to work.

    LMANNYR
      I get this upon hitting submit in my email:

      1234567
      message
      27419257.1214274758.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
      27419257
      27419257.445274696.1214274758.1214275312.1214793930.3

      Thanks for looking, and thank you for looking.

        • 1. Re: Help getting contact page to work.
          LMANNYR Level 1
          here is all the code....

          -------------Script on Contact Page "Main Script"--------------


          rec = "me@mydomain.net";
          serv = "php";
          var fields_descriptions = Array("", Array("t1", "your_name", ""), Array("t2", "your_company", ""), Array("t3", "your_phone", ""), Array("t4", "your_email", ""), Array("t5", "message", ""));
          function reset_txt(name, name2, value) {
          path = eval(_target);
          path[name2] = value;
          this[name].onSetFocus = function() {
          path = eval(_target);
          if (path[name2] == value) {
          path[name2] = "";
          }
          };
          this[name].onKillFocus = function() {
          path = eval(_target);
          if (path[name2] == "") {
          path[name2] = value;
          }
          };
          }
          for (i=1; i<=fields_descriptions.length; i++) {
          reset_txt("t"+i, fields_descriptions [1], fields_descriptions[2]);
          }
          • 2. Re: Help getting contact page to work.
            LMANNYR Level 1
            arh!!! Here is more.
            ------------------Submit Button Script------------------

            on (rollOver) {
            this.gotoAndPlay("s1");
            }
            on (releaseOutside, rollOut) {
            this.gotoAndPlay("s2");
            }
            on (release) {
            for (i=1; i<_parent.fields_descriptions.length; i++) {
            if (_parent[_parent.fields_descriptions [1]]!=undefined) { this[_parent.fields_descriptions[1]]=_parent[_parent.fields_descriptions [1]]+"&777&"+_parent.fields_descriptions[2];
            }
            }
            this.recipient=_parent.rec;
            //i=undefined;
            getURL("contact."+_parent.serv, "_blank", "POST");
            }
            • 3. Help getting contact page to work.
              LMANNYR Level 1
              and...
              ------------------Contact.php-----------------------

              <?php
              Error_Reporting(E_ALL & ~E_NOTICE);

              while ($request = current($_REQUEST)) {
              if (key($_REQUEST)!='recipient') {
              $pre_array=split ("&777&", $request);

              $post_vars[key($_REQUEST)][0]=preg_replace ("/<[^>]*>/", "", $pre_array[0]);
              $post_vars[key($_REQUEST)][1]=preg_replace ("/<[^>]*>/", "", $pre_array[1]);
              }
              next($_REQUEST);
              }



              reset($post_vars);


              $subject="From: ".$post_vars['your_name'][0];
              $headers= "From: ".$post_vars['your_email'][0] ."\n";
              $headers.='Content-type: text/html; charset=iso-8859-1';
              $message='';
              while ($mess = current($post_vars)) {
              if ((key($post_vars)!="i") && (key($post_vars)!="your_email") && (key($post_vars)!="your_name")) {

              $message.="<strong>".$mess[1]."</strong>   ".$mess[0]."<br>";
              }
              next($post_vars);
              }

              mail($_REQUEST['recipient'], $subject, "
              <html>
              <head>
              <title>Contact letter</title>
              </head>
              <body>
              <br>
              ".$message."
              </body>
              </html>" , $headers);
              echo ("Your message was successfully sent!");

              ?>
              <script>
              resizeTo(300, 200);
              </script>
              -------------------email received when Using "Submit" button------------------------------------------

              Return-path: <thehosting info>
              Envelope-to: me@mydomain..net
              Delivery-date: Mon, 30 Jun 2008 07:52:49 -0700
              Received: from thehostinginfo with local (Exim 4.68)
              (envelope-from <thehostinginfo>)
              id 1KDKkL-0002sk-5U
              for me@mydomain.net; Mon, 30 Jun 2008 07:52:49 -0700
              To: me@mydomain.net
              Subject: From: 123
              X-PHP-Script: domain.net/contact.php for 74.229.41.89
              From: me@mydomain.net
              Content-type: text/html; charset=iso-8859-1
              Message-Id: <hostinginfo>
              Date: Mon, 30 Jun 2008 07:52:49 -0700


              <html>
              <head>
              <title>Contact letter</title>
              </head>
              <body>
              <br>
              <strong></strong>   <br><strong></strong>   1234567<br><strong></strong>   message<br><st rong></strong>   27419257.1214274758.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)<br> <strong></strong>   27419257<br><strong></strong>   27419257.445274696.1214274758.12142753 12.1214793930.3<br>
              </body>
              </html>


              or (in the body)

              1234567
              message
              27419257.1214274758.1.1.utmccn=(direct)|utmcsr=(direct)|utmcmd=(none)
              27419257
              27419257.445274696.1214274758.1214275312.1214793930.3
              ------------