Emails received

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Lowell
    Private First Class

    • Apr 2008
    • 9

    Emails received

    thehopechest.us ID #23736

    I was able to set up a contact page and everything seems to be working OK. However when I send a test page I get the following emil
    Values submitted from web site form :

    Button1 : Submit
    TextArea1 : This is a test
    Contact : Current Customer
    name : (my name)
    email : (my email address)

    Can I change this so only the text line shows or at the least change the text color so it is highlighted?
  • Watdaflip
    Major General

    • Sep 2005
    • 2116

    #2
    Re: Emails received

    I am not sure what you mean so only the text lines show, (are you asking how to make it so it only emails you what they enter?), but as far as highlighting you would have to make it a html email and then insert the necessary html code to highlight the text. If you post the php code you are using I can help you make the necessary edits

    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

    • Lowell
      Private First Class

      • Apr 2008
      • 9

      #3
      Re: Emails received

      Values submitted from web site form :
      Button1 : Submit

      TextArea1 : testing this page
      Contact : Current Customer
      name : (senders name)
      email : (senders address)

      What I would like to do is eliminate the wording in red
      so it does not show when I open the email received form the
      customer? Also

      Comment

      • Watdaflip
        Major General

        • Sep 2005
        • 2116

        #4
        Re: Emails received

        Post the php script you are using and I will modify it to remove what you have highlighted in red

        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

        • Lowell
          Private First Class

          • Apr 2008
          • 9

          #5
          Re: Emails received

          How do I post the php you requested?

          Comment

          • navaldesign
            General & Forum Moderator

            • Oct 2005
            • 12080

            #6
            Re: Emails received

            Copy it and paste it here just as a normal post
            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

            • Lowell
              Private First Class

              • Apr 2008
              • 9

              #7
              Re: Emails received

              <!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>The Hope Chest</title>
              <meta name="GENERATOR" content="Created by BlueVoda">
              <style type="text/css">
              div#container
              {
              width: 800px;
              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];
              }
              }
              }
              // -->
              </script>
              <script type="text/javascript">
              <!--
              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 bgcolor="#FFFFFF" text="#000000">
              <div id="container">
              <img src="m_120b.gif" id="Image1" alt="" align="top" border="0" width="780" height="598" style="position:absolute;left:0px;top:0px;width:78 0px;height:598px;z-index:10">
              <div id="bv_" style="position:absolute;left:224px;top:13px;width :551px;height:71px;z-index:11" align="center">
              <font style="font-size:64px" color="#FFFF00" face="Black Chancery">The Hope Chest</font></div>
              <div id="bv_" style="position:absolute;left:8px;top:714px;width: 781px;height:18px;z-index:12" align="center">
              <font style="font-size:15px" color="#3CB371" face="Arial"><b>A Ministry of the First United Methodist Church Decatur, Indiana</b></font></div>
              <div id="bv_" style="position:absolute;left:20px;top:121px;width :131px;height:260px;z-index:13" align="center">
              <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1">
              <tr>
              <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/index.html"><img id="bv01008" src="bv01008.gif" alt="Home" title="Home" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01008','bv01008_over .gif')" onmouseout="SwapImage(0,0,'bv01008','bv01008.gif') "></a></td>
              </tr>
              <tr><td height="25"></td></tr><tr>
              <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/about.html"><img id="bv01009" src="bv01009.gif" alt="About" title="About" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01009','bv01009_over .gif')" onmouseout="SwapImage(0,0,'bv01009','bv01009.gif') "></a></td>
              </tr>
              <tr><td height="25"></td></tr><tr>
              <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/meetthestaff.html"><img id="bv01017" src="bv01017.gif" alt="Meet the Staff" title="Meet the Staff" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01017','bv01017_over .gif')" onmouseout="SwapImage(0,0,'bv01017','bv01017.gif') "></a></td>
              </tr>
              <tr><td height="25"></td></tr><tr>
              <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/specials.html"><img id="bv01010" src="bv01010.gif" alt="Specials" title="Specials" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01010','bv01010_over .gif')" onmouseout="SwapImage(0,0,'bv01010','bv01010.gif') "></a></td>
              </tr>
              <tr><td height="25"></td></tr><tr>
              <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/contact.html"><img id="bv01011" src="bv01011.gif" alt="Contact" title="Contact" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01011','bv01011_over .gif')" onmouseout="SwapImage(0,0,'bv01011','bv01011.gif') "></a></td>
              </tr>
              </table>
              </div>
              <div id="bv_" style="position:absolute;left:221px;top:137px;widt h:555px;height:518px;z-index:14" align="left">
              <form name="Contact Form" method="POST" action="action.php" enctype="multipart/form-data" id="Form1">
              <input type="submit" id="Button1"" name="Button1" value="Submit" style="position:absolute;left:446px;top:475px;widt h:75px;height:24px;z-index:0">
              <div id="bv_Text3" style="position:absolute;left:6px;top:11px;width:5 42px;height:37px;z-index:1" align="center">
              <font style="font-size:32px" color="#FF0000" face="Arial"><b>Contact us</b></font></div>
              <div id="bv_Text4" style="position:absolute;left:63px;top:62px;width: 220px;height:19px;z-index:2" align="left">
              <font style="font-size:16px" color="#000000" face="Arial"><b>Phone: 260-724-9774</b></font></div>
              <div id="bv_Text5" style="position:absolute;left:41px;top:124px;width :92px;height:19px;z-index:3" align="left">
              <font style="font-size:16px" color="#009300" face="Arial"><b>Your Name</b></font></div>
              <div id="bv_Text6" style="position:absolute;left:43px;top:162px;width :87px;height:19px;z-index:4" align="left">
              <font style="font-size:16px" color="#009300" face="Arial"><b>Your Email</b></font></div>
              <textarea name="TextArea1" id="TextArea1" style="position:absolute;left:51px;top:206px;width :478px;height:150px;border:2px #009300 solid;z-index:5" rows="8" cols="50"></textarea>
              <select name="Contact" size="1" id="Combobox3" style="position:absolute;left:282px;top:376px;widt h:189px;font-family:MS Shell D**;z-index:6">
              <option>Please Select One</option>
              <option>Current Customer</option>
              <option>Friend</option>
              <option>Search Engine</option>
              <option>Consigner</option>
              </select>
              <input type="text" id="Editbox1" style="position:absolute;left:138px;top:123px;widt h:378px;border:2px #009300 solid;font-family:Courier;font-size:19px;z-index:7" size="42" name="name" value="">
              <input type="text" id="Editbox2" style="position:absolute;left:142px;top:160px;widt h:378px;border:2px #009300 solid;font-family:Courier;font-size:19px;z-index:8" size="42" name="email" value="">
              <div id="bv_Text7" style="position:absolute;left:76px;top:378px;width :198px;height:19px;z-index:9" align="left">
              <font style="font-size:16px" color="#000000" face="Arial"><b>How did you find us?</b></font></div>

              </form>
              </div>
              </div>
              </body>
              </html>

              Comment

              • navaldesign
                General & Forum Moderator

                • Oct 2005
                • 12080

                #8
                Re: Emails received

                That's your form page code, we need your php script code, you have pasted it in your thank you page
                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

                • Lowell
                  Private First Class

                  • Apr 2008
                  • 9

                  #9
                  Re: Emails received

                  Sorry I am new to this

                  <!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: 800px;
                  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];
                  }
                  }
                  }
                  // -->
                  </script>
                  <script type="text/javascript">
                  <!--
                  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 bgcolor="#FFFFFF" text="#000000">
                  <?PHP
                  $mailto = "shop@thehopechest.us";
                  $email = $HTTP_POST_VARS['email'];
                  if ($email == "") {
                  $email = $mailto;
                  }
                  $mailsubj = "Contact";
                  $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);
                  ?><?PHP
                  $mailto = "youremail@yourdomain.com";
                  $email = $HTTP_POST_VARS['email'];
                  if ($email == "") {
                  $email = $mailto;
                  }
                  $mailsubj = "Type your mail subject here";
                  $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">
                  <img src="m_120b_02.gif" id="Image1" alt="" align="top" border="0" width="780" height="600" style="position:absolute;left:1px;top:0px;width:78 0px;height:600px;z-index:0">
                  <div id="bv_" style="position:absolute;left:216px;top:19px;width :551px;height:71px;z-index:1" align="center">
                  <font style="font-size:64px" color="#FFFF00" face="Black Chancery">The Hope Chest</font></div>
                  <div id="bv_" style="position:absolute;left:4px;top:576px;width: 781px;height:18px;z-index:2" align="center">
                  <font style="font-size:15px" color="#3CB371" face="Arial"><b>A Ministry of the First United Methodist Church Decatur, Indiana</b></font></div>
                  <div id="bv_" style="position:absolute;left:36px;top:157px;width :131px;height:260px;z-index:3" align="center">
                  <table border="0" cellpadding="0" cellspacing="0" id="NavigationBar2">
                  <tr>
                  <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/index.html"><img id="bv01023" src="bv01023.gif" alt="Home" title="Home" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01023','bv01023_over .gif')" onmouseout="SwapImage(0,0,'bv01023','bv01023.gif') "></a></td>
                  </tr>
                  <tr><td height="25"></td></tr><tr>
                  <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/about.html"><img id="bv01024" src="bv01024.gif" alt="About" title="About" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01024','bv01024_over .gif')" onmouseout="SwapImage(0,0,'bv01024','bv01024.gif') "></a></td>
                  </tr>
                  <tr><td height="25"></td></tr><tr>
                  <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/meetthestaff.html"><img id="bv01025" src="bv01025.gif" alt="Meet the Staff" title="Meet the Staff" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01025','bv01025_over .gif')" onmouseout="SwapImage(0,0,'bv01025','bv01025.gif') "></a></td>
                  </tr>
                  <tr><td height="25"></td></tr><tr>
                  <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/specials.html"><img id="bv01026" src="bv01026.gif" alt="Specials" title="Specials" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01026','bv01026_over .gif')" onmouseout="SwapImage(0,0,'bv01026','bv01026.gif') "></a></td>
                  </tr>
                  <tr><td height="25"></td></tr><tr>
                  <td align="left" valign="top" width="131" height="32"><a href="http://www.thehopechest.us/contact.html"><img id="bv01027" src="bv01027.gif" alt="Contact" title="Contact" align="top" border="0" width="131" height="32" onmouseover="SwapImage(1,0,'bv01027','bv01027_over .gif')" onmouseout="SwapImage(0,0,'bv01027','bv01027.gif') "></a></td>
                  </tr>
                  </table>
                  </div>
                  <div id="bv_" style="position:absolute;left:320px;top:237px;widt h:384px;height:140px;z-index:4" align="center">
                  <font style="font-size:24px" color="#005500" face="Comic Sans MS"><b>Thank you for your e-mail<br>
                  <br>
                  If an answer is required, we will be back to you ASAP!</b></font></div>
                  <div id="bv_" style="position:absolute;left:170px;top:190px;widt h:150px;height:16px;z-index:5" align="left">
                  <font style="font-size:13px" color="#000000" face="Arial">t</font></div>
                  <div id="bv_" style="position:absolute;left:363px;top:174px;widt h:150px;height:16px;z-index:6" align="left">
                  &nbsp;</div>
                  <div id="bv_" style="position:absolute;left:252px;top:167px;widt h:514px;height:267px;z-index:7" align="left">
                  <form name="Form1" method="POST" action="" enctype="text/plain" id="Form1">

                  </form>
                  </div>
                  </div>
                  </body>
                  </html>

                  Comment

                  • navaldesign
                    General & Forum Moderator

                    • Oct 2005
                    • 12080

                    #10
                    Re: Emails received

                    Change your script to be:

                    <?PHP
                    $mailto = "youremail@yourdomain.com";
                    $email = $HTTP_POST_VARS['email'];
                    if ($email == "") {
                    $email = $mailto;
                    }
                    $mailsubj = "Type your mail subject here";
                    $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 .= "$val\n";
                    }
                    }
                    mail($mailto, $mailsubj, $mailbody, $mailhead);
                    ?>


                    Please also note that you have pasted the same code twice, so you will be receiving two emails. Remove the entire php code and then paste the one i posted above
                    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

                    • Lowell
                      Private First Class

                      • Apr 2008
                      • 9

                      #11
                      Re: Emails received

                      Thanks everything seems to be working fine

                      Comment

                      Working...
                      X