email from forms

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

    • Jan 2007
    • 20

    #16
    Re: email from forms

    not sure if this is what you need? but here goes


    <!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">
    <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 bgcolor="#FFFFDF" text="#000000"
    <?PHP
    $email = $HTTP_POST_VARS[email];
    $mailto = "dantinaproperties@dantinaproperties.com";
    $mailsubj = "request more information";
    $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 style="position:absolute;left:85px;top:23px;width: 749px;height:73px;background-color:#FFFFC4;z-index:0" align="center">
    <FONT style="font-size:64px;BACKGROUND-COLOR:#FFFFFF" color="#FFAD5B" face="Abadi MT Condensed Extra Bold">www.Dantinaproperties.com</FONT>
    </DIV>
    <DIV style="position:absolute;left:100px;top:134px;widt h:134px;height:310px;z-index:1" align="center">
    <TABLE border="0" cellpadding="0" cellspacing="0">
    <TR>
    <TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/apartments.html"><IMG id="bv01281" src="bv01281.gif" alt="http://www.dantinaproperties.com/apartments.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01281','bv01281_over .gif')" onmouseout="SwapImage(0,0,'bv01281','bv01281.gif') "></A></TD>
    </TR>
    <TR><TD height="50"></TD></TR><TR>
    <TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/villas.html"><IMG id="bv01282" src="bv01282.gif" alt="http://www.dantinaproperties.com/villas.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01282','bv01282_over .gif')" onmouseout="SwapImage(0,0,'bv01282','bv01282.gif') "></A></TD>
    </TR>
    <TR><TD height="50"></TD></TR><TR>
    <TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/duplex.html"><IMG id="bv01283" src="bv01283.gif" alt="http://www.dantinaproperties.com/duplex.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01283','bv01283_over .gif')" onmouseout="SwapImage(0,0,'bv01283','bv01283.gif') "></A></TD>
    </TR>
    <TR><TD height="50"></TD></TR><TR>
    <TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/bungalows.html"><IMG id="bv01284" src="bv01284.gif" alt="http://www.dantinaproperties.com/bungalows.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01284','bv01284_over .gif')" onmouseout="SwapImage(0,0,'bv01284','bv01284.gif') "></A></TD>
    </TR>
    <TR><TD height="50"></TD></TR><TR>
    <TD align="left" valign="top" width="134" height="22"><A href="http://www.dantinaproperties.com/fincas.html"><IMG id="bv01285" src="bv01285.gif" alt="http://www.dantinaproperties.com/fincas.html" align="top" border="0" width="134" height="22" onmouseover="SwapImage(1,0,'bv01285','bv01285_over .gif')" onmouseout="SwapImage(0,0,'bv01285','bv01285.gif') "></A></TD>
    </TR>
    </TABLE>
    </DIV>
    <DIV style="position:absolute;left:334px;top:175px;widt h:473px;height:162px;z-index:2" align="center">
    <FONT style="font-size:48px" color="#FF6820" face="Abadi MT Condensed Extra Bold">Thank you for your request we will replie as soon as possible.</FONT>
    </DIV>
    </BODY>
    </HTML>

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #17
      Re: email from forms

      Just sent you an email to your email address to see if it goes through. Your script seems ok.

      Just one small error:

      $email = $HTTP_POST_VARS['email']; here it should be 'email'
      $mailto = "dantinaproperties@dantinaproperties.com";
      $mailsubj = "request more information";
      $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);

      My only suspect is that since there was no sender's email address (because of the above mistake) the mails were blocked by spam filters.
      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

      • krisy
        Sergeant

        • Jan 2007
        • 20

        #18
        Re: email from forms

        have not received any emails as of 3.48 pm

        Comment

        • navaldesign
          General & Forum Moderator

          • Oct 2005
          • 12080

          #19
          Re: email from forms

          Don't know what else to say. Correct the mistake in the script, and try also changing the email address to something else. If you still can't get it to work, you can ask for help
          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

          • krisy
            Sergeant

            • Jan 2007
            • 20

            #20
            Re: thanks

            i would just like to say thank you for all your help with this matter and hopefully the problem will be resolved.

            thanks again

            Comment

            • Ram_Industries
              First Lieutenant

              • Dec 2005
              • 164

              #21
              Re: email from forms

              Naval:

              In your post about multi-page forms for Contact Us pages on a persons website, I would like to know what could be done to create a better look and feel of the information sent to the person(s) when a person has filled in the forms.

              My problem is how to format or where to format the form before I receive it. Below is what I get after submit has been pressed.

              Values submitted from web site form :
              New_/_Used : new
              Type : (power)
              manufacturer_/_builder : this is just a test
              From : from
              To : to
              Feet/Inches/Meters : feet
              Year : yyyy
              email : this is just a test
              name : this is just a test
              address : this is just a test
              city : this is just a test
              state : this is just a test
              zip_code : this is just a test
              phone_number : this is just a test
              Submit : Page2
              Hull : aluminum
              Fuel : Diesel
              Engines : 1
              Comments : this is just a test.... please disregard
              formpage3 : Page 3


              Is there a way to make this look more professional instead of what it looks like here?

              I would like to receive the information in a more easier to read format.
              Such as one e-mail that has each pages information broken down in the way it is created on the website.

              Page one information:

              Name ............................. Iam Nothere
              Address........................... Your Town
              State.............................. My State
              Zip Code.......................... Numbers
              Phone Number................... ### - ### -###
              Email............................... Help@figurethisout.com


              Page two information:

              What ever is placed on page two but in a readable format as stated above.

              Page three after submit has been pressed then I get the information in my email.....

              I am trying to create a better Thank you letter for page 3

              More professional in nature. Such as a letter with my company logo the address and the format and style one gets from snail mail and a company business letter.

              Thank you

              Ram_Industries
              Robert Montgomery
              Ram_Industries
              Robert A. Montgomery
              Ram-Industries@comcast.net
              http://Martech-Inc.biz

              Comment

              • Ram_Industries
                First Lieutenant

                • Dec 2005
                • 164

                #22
                Re: email from forms

                In addition: I would like for the Thank you page to appear with the persons name that sent the form to appear. So if John Masterson filled in the form located on the Contact Us, and John sent the form, his Auto Response page opens up to say something like the following:

                As follows:

                Dear John Masterson:

                Thank you for your request for information from Martech Inc.

                Martech Inc Yacht Coating Spe******ts will view your information and get back with you with-in 24 - 48 Hours if there is additional information we will need from you.

                Martech Inc. Management Team

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

                Originally posted by Ram_Industries
                Naval:

                In your post about multi-page forms for Contact Us pages on a persons website, I would like to know what could be done to create a better look and feel of the information sent to the person(s) when a person has filled in the forms.

                My problem is how to format or where to format the form before I receive it. Below is what I get after submit has been pressed.

                Values submitted from web site form :
                New_/_Used : new
                Type : (power)
                manufacturer_/_builder : this is just a test
                From : from
                To : to
                Feet/Inches/Meters : feet
                Year : yyyy
                email : this is just a test
                name : this is just a test
                address : this is just a test
                city : this is just a test
                state : this is just a test
                zip_code : this is just a test
                phone_number : this is just a test
                Submit : Page2
                Hull : aluminum
                Fuel : Diesel
                Engines : 1
                Comments : this is just a test.... please disregard
                formpage3 : Page 3


                Is there a way to make this look more professional instead of what it looks like here?

                I would like to receive the information in a more easier to read format.
                Such as one e-mail that has each pages information broken down in the way it is created on the website.

                Page one information:

                Name ............................. Iam Nothere
                Address........................... Your Town
                State.............................. My State
                Zip Code.......................... Numbers
                Phone Number................... ### - ### -###
                Email............................... Help@figurethisout.com


                Page two information:

                What ever is placed on page two but in a readable format as stated above.

                Page three after submit has been pressed then I get the information in my email.....

                I am trying to create a better Thank you letter for page 3

                More professional in nature. Such as a letter with my company logo the address and the format and style one gets from snail mail and a company business letter.

                Thank you

                Ram_Industries
                Robert Montgomery
                http://Martech-Inc.biz
                Ram_Industries
                Robert A. Montgomery
                Ram-Industries@comcast.net
                http://Martech-Inc.biz

                Comment

                • navaldesign
                  General & Forum Moderator

                  • Oct 2005
                  • 12080

                  #23
                  Re: email from forms

                  I can do all of the above. If you wish contact me. Receiving my autoresponder message you will se how it can be formatted.

                  However, since we have long discussed through both forum and email about such features, i'd like to make clear that many of the things you ask for, are ONLY ACHEIVABLE THROUGH A CUSTOMIZED SCRIPT. As such, it cannot be found in a generic script (the paid for version od ABVFP, DBTS Form Processor Pro, has html emails, that allow for perfect formatting). If you wish to see how the email is formatted using html, please test our example contact form in DB Technosystems. You will receive the autoresponder message and you will see what i mean.
                  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