Email help Form Request

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ThisIsMe

    Email help Form Request

    I am using this php email form and it seems to work. But I would like
    for
    the option for attn$ Webmaster to go to a different email address than
    the
    mymail$
    Please be Kind to us newbies...
    can someone modify this and resend it so I can have the form send to 2
    different email addresses? Or maybe three if that is possible determined

    by what attn$ option is used.
    the following is actually two files contact.html then sendeaml.php

    <br>
    <p style="text-align: center;" height="82" nowrap="nowrap"
    valign="top"><b >
    <font color="#0000cc" face="Pristina" size="6">
    <span style="font-size: 36px; line-height: 44px;"><big>My WebPage for
    Feedback</big><br soft="">
    </span></font></b></p>
    <div style="text-align: center;"><br>
    </div>
    <h1 style="text-align: center;"><stron g>Feedback Page !</strong></h1>
    <div style="text-align: center;"></div>
    <p style="text-align: center;">&nbsp; </p>
    <div style="text-align: center;"></div>
    <form method="post" action="sendeai l.php">
    <div style="text-align: center;">
    <input name="ip" value="&lt;?php echo $ipi ?&gt;" type="hidden">< input

    name="httpref" value="&lt;?php echo $httprefi ?&gt;" type="hidden">
    <input name="httpagent " value="&lt;?php echo $httpagenti ?&gt;"
    type="hidden">
    </div>
    <center>
    <div style="text-align: center;"><br>
    Type of request:<br>
    <select name="attn" size="1">
    <option value=" option1 ">Option1 </option>
    <option value=" Option2 ">Option2 </option>
    <option value=" Option3 ">Option3 </option>
    <option value=" Option4 ">Option4 </option>
    <option value=" Option5 ">Option5 </option>
    <option value=" Webmaster ">Webmaster </option>
    </select>
    <br>
    <br>
    Your Request:
    <br>
    <textarea name="request" rows="4" cols="50"></textarea><br>
    <br>
    Should this be a private message to me?
    <select name="private" size="1">
    <option value=" No">No </option>
    <option value=" Yes">Yes </option>
    </select>
    <br>
    <br>
    Should I ask others to help with this?
    <select name="share" size="1">
    <option value=" No">No </option>
    <option value=" Yes">Yes </option>
    </select>
    <br>
    <br>
    Do you want me to contact you?
    <select name="reply" size="1">
    <option value=" No">No </option>
    <option value=" Yes">Yes </option>
    </select>
    <br>
    <br>
    Your Email: <input name="visitorma il" size="35" type="text"><br >
    <br>
    Your Name: <input name="visitor" size="35" type="text"><br >
    <br>
    <input value="Send Mail" type="submit">
    <br>
    <center> <dd>&nbsp;</dd>

    </center>
    </form>
    </body>
    </html>




    [color=blue][color=green][color=darkred]
    >>>>>>>After this is sendeal.php >>Before is[/color][/color][/color]
    contact.html>>> >>>>>>>>>>>>>>> >>>>>>>



    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Sendemai l Script</title>
    </head>
    <body>

    <!-- Required: YOUR email ($myemail). Optional: Enter CC email address
    ($ccx)
    Required: Add the link for the 'next page' (at the bottom) -->

    <?php

    $myemail = "me@mysite.com" ;


    if(!$visitormai l == "" && (!strstr($visit ormail,"@") ||
    !strstr($visito rmail,".")))
    {
    echo "<h2>Use Back - Enter valid e-mail</h2>\n";
    $badinput = "<h2>Feedba ck was NOT submitted</h2>\n";
    }
    if(empty($visit or) || empty($visitorm ail) || empty($request )) {
    echo "<h2>Use Back - fill in all fields</h2>\n";
    }
    echo $badinput;

    $todayis = date("l, F j, Y, g:i a") ;

    $attn = $attn . "(" . $ccopy . ")" ;
    $subject = $attn;

    $notes = stripcslashes($ notes);

    $message = " $todayis [EST] \n
    Type of Request: $attn \n
    Message: $request \n
    \n
    Keep this Private: $private \n
    Please ask others for Help: $share \n
    Please Contact me: $reply \n
    My Name is: $visitor \n


    From: $visitor ($visitormail)\ n
    Additional Info : IP = $ip \n
    Browser Info: $httpagent \n
    Referral : $httpref \n
    ";

    $from = "From: $visitormail\r\ n";

    if (($ccopy == "cc yes") && ($visitormail != ""))
    mail($visitorma il, $subject, $message, $from);

    if ($myemail != "")
    mail($myemail, $subject, $message, $from);

    if ($ccx != "")
    mail($ccx, $subject, $message, $from);

    ?>

    <p align="center">
    Date: <?php echo $todayis ?>
    <br />
    Thank You : <?php echo $visitor ?> ( <?php echo $visitormail ?> )
    <br />

    Type of request: <?php echo $attn ?>
    <br />
    Message:<br />
    <?php $notesout = str_replace("\r ", "<br/>", $request);
    echo $notesout; ?>
    <br />


    <br /><br />
    <a href="contact.h tml"> Make another request </a> <br />
    <br />
    <a href="index.htm l"> Back to Home Page </a>
    </p>

    </body>
    </html>




Working...