Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Apr 2004
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    form help please

    Hi,
    Hope someone can offer a bit of assistance.
    I have a contact.html form page which posts the filled in fields to the PHP page below, thankyou.php. I need the results of these fields to go to a Lotus email database called mkt as well.
    Can someone show me how to post to the email account with the working code below?

    I appreciate any help.

    PHP Code:
    <?php
    session_cache_limiter
    ('nocache'); 
    session_start();
    include 
    "subs.php";
    Print_header ("Get Password","",0);
    ?>
    <br><center><h1>Thank You!</h1></center><br>
    <TABLE border="0" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0">
    <TR>
    <TD width=600><BR>
    <BR><b></b><center>
    <? 
    echo $_POST['Realname'];
    ?>
    <br> 
    <?
    echo $_POST['Username'];
    ?>
    <br>
    <?
    echo $_POST['Title'];
    ?>
    <br> 
    <?
    echo $_POST['Company']; 
    ?>
    <br>
    <?
    echo $_POST['Dept']; 
    ?>
    <br>
    <?
    echo $_POST['Address']; 
    ?>
    <br>
    <?
    echo $_POST['City']; 
    ?>
    <br>
    <?
    echo $_POST['Zip/Postal Code']; 
    ?>
    <br>
    <?
    echo $_POST['Phone']; 
    ?>
    <br>
    <?
    echo $_POST['Fax']; 
    ?>

    <br>

    </center></b>

    </TD></TR></TABLE>
    <?
    Print_footer 
    ();
    ?>

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts

  • #3
    New Coder
    Join Date
    Apr 2004
    Posts
    58
    Thanks
    0
    Thanked 0 Times in 0 Posts

    thank you Fumigator

    I know I need to concatenate thhe fields into a string and assign that string to the message portion of the mail function, but I am at a loss on how to do that. Can you offer an example with my posted code?

    It would be greatly appreciated...


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •