Email form with php

Hello,
I have been reading that mailto: is outdated.  I have been reading on creating an email form using php.  I don't  understand.  Do you create a table first to put the info:
First Name:
Last Name:
Email:
Message:
Submit button
Does anyone know of a comprehensive article that I could read with maybe some examples or even tutorial.   This is my webstie www.ewrolexrepair.com.  This is my first website.  I am trying to put somekind of email contact next to my picture.  Any help would be greatly appreciated.  Thanks!

Below is a ready made php form including First Name, Last Name, Email and Message.
The form is sent back to the page it is located on i.e. if the form is inserted into a page called 'contact.php' then the action form field would be as follows: <form id="enquiryForm" name="enquiryForm" method="post" action="contact.php">
Change the below in the code to your email address (the one you want the info to be sent to):
$to = "[email protected]"; //email address -- change to your own email address
Change success.php below in the code to the page you want the user to go to after submitting the form.
header("Location: success.php");
//Redirect page -- change to your own page
<!-- FORM CODE STARTS HERE -->
<?php session_start(); ?>
<?php
if (array_key_exists('submit', $_POST)) {
    // check first_name field
$first_name = trim($_POST['first_name']);
if (empty($first_name)) {
    $error['first_name'] = 'Please provide your first name';
elseif ($first_name == 'Please provide your first name') {
    $error['first_name'] = '';
$_SESSION['first_name'] = $_POST['first_name'];
// check last_name field
$last_name = trim($_POST['last_name']);
if (empty($last_name)) {
    $error['last_name'] = 'Please provide your last name';
elseif ($last_name == 'Please provide your last name') {
    $error['last_name'] = '';
$_SESSION['last_name'] = $_POST['last_name'];
// check email field
$email = trim($_POST['email']);
if (empty($email)) {
    $error['email'] = 'Please enter your email address';
elseif ($email == 'Please enter your email address') {
    $error['email'] = '';
$_SESSION['email'] = $_POST['email'];
// check enquiry field
$message = trim($_POST['message']);
if (empty($message)) {
    $error['message'] = 'Please enter your message details';
elseif ($message == 'Please enter your message details') {
    $error['message'] = '';
$_SESSION['message'] = $_POST['message'];
if (!empty($_POST['ufo'])) { return false; }
// recipient
$to = "[email protected]"; //email address -- change to your own email address
// email subject
$subject = "Enquiry from Website";
// sender
$sender = "From: ".$_POST['email']."\r\n";
// build message
$enquiry = "First Name: $first_name\n\n";
$enquiry .= "Last Name: $last_name\n\n";
$enquiry .= "Email Address: $email\n\n";
$enquiry .= "Message: $message\n\n";
// send email if no form erorrs
if (!isset($error)) {
mail($to, $subject, $enquiry, $sender);
header("Location: success.php");        //Redirect page -- change to your own page
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PHP Form Test</title>
<style type="text/css">
/* style the form input fields */
#enquiryForm input {
    font-family: arial, verdana, sans-serif;
    font-size: 12px;
    width: 300px;
    padding: 5px;
/* style the form textarea field */
#enquiryForm textarea {
    font-family: arial, verdana, sans-serif;
    font-size: 12px;
    width: 300px;
    padding: 5px;
/* style the form submit button */
#enquiryForm #submitButton {
    width: 100px;
</style>
</head>
<body>
<form id="enquiryForm" name="enquiryForm" method="post" action="contact.php">
<h2>Online Enquiry</h2>
<p>Required Information*</p>
<p><label for="Name">First Name* </label><br />
<input type="text" name="first_name" id="first_name" <?php if(isset($error['first_name'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($first_name)) {echo $first_name;} ?><?php if(isset($error['first_name'])) echo $error['first_name']; ?>" onfocus="this.value=''"></p>
  <p><label for="Name">Last Name* </label><br />
  <input type="text" name="last_name" id="last_name" <?php if(isset($error['last_name'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($last_name)) {echo $last_name;} ?><?php if(isset($error['last_name'])) echo $error['last_name']; ?>" onfocus="this.value=''"></p>
  <p><label for="email">Email<span>*</span>
</label><br />
  <input type="text" name="email" id="email" <?php if(isset($error['email'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> value="<?php if(isset($email)) {echo $email;} ?><?php if(isset($error['email'])) echo $error['email']; ?>" onfocus="this.value=''"></p>
  <p style="padding-bottom: 0;"><label for="enquiry">Message<span>*</span></label><br />
  <textarea name="message" id="message" <?php if(isset($error['message'])) echo "style='border: 1px solid #C00; color: #C00;'"; ?> onfocus="this.value=''"><?php if(isset($message)) {echo $message;} ?><?php if(isset($error['message'])) echo $error['message']; ?></textarea></p>
<p><input type="text" name="ufo" style="display: none;"></p>
<p><input type="submit" id="submitButton" name="submit" value="Send Enquiry" /></p>
  </form>
</body>
</html>

Similar Messages

  • Php email form with styling

    Hi
    I have a php file which generates an email from a form in a
    website I have designed. I just want to make some areas of the
    final generated email in bold text. I know if people have plain
    text only selected in their email client they won't see the bold
    text, but at least it will reach a certain percentage of users.
    the line in question is -
    $body ="Booking request details from website:\n\n";
    I have tried putting <b></b> and
    <strong></strong>, inside the inverted commas, outside
    etc, plus tried different declarations within the <head>,
    nothing works! What am I doing wrong?
    I am a beginner with this php stuff, please be kind!
    Thanks

    .oO(BarryGBrown)
    > I have a php file which generates an email from a form
    in a website I have
    >designed. I just want to make some areas of the final
    generated email in bold
    >text. I know if people have plain text only selected in
    their email client they
    >won't see the bold text, but at least it will reach a
    certain percentage of
    >users.
    You can't do bold text in a normal email. Plain text is just
    that -
    plain text. For anything more you need HTML. _If_ you should
    need it.
    Usually plain text serves pretty well and is the most
    efficient way.
    > the line in question is -
    >
    > $body ="Booking request details from website:\n\n";
    >
    > I have tried putting  and ,
    syntax is used in some forum software, but besides that it
    has
    no meaning whatsoever.
    >inside the inverted commas, outside
    >etc, plus tried different declarations within the
    <head>, nothing works! What
    >am I doing wrong?
    You would have to create an entire HTML email with all the
    required
    headers and boundaries. Quite difficult to do by hand with
    PHP's mail()
    function.
    > I am a beginner with this php stuff, please be kind!
    Then you should start simple with plain text. There are some
    classes out
    there which make it easy to generate text and HTML emails
    (phpmailer for
    example), but you should be familiar with PHP coding if you
    want to use
    them.
    Micha

  • PHP email form with Validation - not working

    Hello;
    I am new to using php. I usually use coldfusion or asp but this site requires me to write in php. I have a form I am trying to get to work and right now.. it doesn't do anyhting but remember what you put in the fields. It doesn't want to send, and it won't execute the validation script for the fields that are required. Can anyone help me make this work? I'm confused and a definate newbie to PHP.
    Here is my code:
    <?php    
                  $PHP_SELF = $_SERVER['PHP_SELF'];   
                  $errName    = "";   
                  $errEmail    = "";
                  $errPhone    = "";        
                  if(isset($_POST['submit'])) {        
                          if($_POST["ac"]=="login"){            
                        $FORMOK = TRUE;    // $FORMOK acts as a flag. If you enter any of the conditionals below,                             // it gets set to FALSE, and the e-mail will not be sent.
                        // First Name           
                        if(preg_match("/^[a-zA-Z -]+$/", $_POST["name"]) === 0) {               
                            $errName = '<div class="errtext">Please enter you name.</div>';               
                            $FORMOK = FALSE;           
                        // Email           
                    if(preg_match("/^[a-zA-Z]\w+(\.\w+)*\@\w+(\.[0-9a-zA-Z]+)*\.[a-zA-Z]{2,4}$/", $_POST["email"]) === 0) {                                                    $errEmail = '<div class="errtext">Please enter a valid email.</div>';               
                            $FORMOK = FALSE;           
                        // Phone           
                        if(preg_match("/^[a-zA-Z -]+$/", $_POST["phone"]) === 0) {               
                            $errPhone = '<div class="errtext">Please enter your phone number.</div>';               
                            $FORMOK = FALSE;           
                        if($FORMOK) {               
                                $to = "[email protected]";  
                                $subject = "my. - Contact Form";                  
                                $name_field = $_POST['name'];               
                                $email_field = $_POST['email'];               
                                $phone_field = $_POST['phone'];
                                $city_field = $_POST['city'];
                                $state_field = $_POST['state'];               
                                $message = $_POST['comment'];                
                                $message = "               
                                Name: $name_field               
                                Email: $email_field
                                Phone: $phone_field   
                                City: $city_field   
                                State: $state_field               
                                Message: $message";                
                                $headers  = 'MIME-Version: 1.0' . "\r\n";               
                                $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";                
                                // Additional headers               
                                $headers .= 'To: <[email protected]>' . "\r\n";               
                                $headers .= '[From] <$email_field>' . "\r\n";                
                                // Mail it               
                                mail($to, $subject, $message, $headers);                
                                header("Location: thankyou.php")
                                // I have no idea what these next 3 lines are for. You may just want to get rid of them.                   
    ini_set("sendmail_from","[Send from]");
    ini_set("SMTP","[mail server]");
    mail($to, $subject, $message, $headers);
                                } else {               
                                echo "Error!";              
                        ?>
    <form method="post" action="<?php $PHP_SELF ?>" id="commentForm">
    <input name="name" size="40" value="<?php echo $_POST["name"]; ?>" type="text">
                         <?php  if(isset($errName)) echo $errName; ?>
    <input name="email" size="40" value="<?php echo $_POST["email"]; ?>"  type="text">
            <?php  if(isset($errEmail)) echo $errEmail; ?>
    <input name="phone" size="40" value="<?php echo $_POST["phone"]; ?>" type="text" id="phone">
            <?php  if(isset($errPhone)) echo $errPhone; ?>
    <input name="city" size="40" value="<?php echo $_POST["city"]; ?>" type="text" id="city">
    <input name="state" size="40" value="<?php echo $_POST["state"]; ?>" type="text" id="state">
    <textarea name="comment" cols="30" rows="10" id="comment"><?php echo $_POST["comment"]; ?></textarea>
    <input type="submit" value="Submit" name="submit" class="contact-submit" />
    </form>
    It seems pretty simple.. but it's not working at all. I would also like this page to submit to it's self, and when it actually does send an email, to just make the form disappear and replace it with the thank you text instead of sending you to another page. I also do not need to use an smtp server, it goes directly to the network server when sent.
    I'm really sorry to ask all of this, I'm trying to learn this language and need to make this work.
    Thank you for anyones help in advance.

    .oO(BarryGBrown)
    > I have a php file which generates an email from a form
    in a website I have
    >designed. I just want to make some areas of the final
    generated email in bold
    >text. I know if people have plain text only selected in
    their email client they
    >won't see the bold text, but at least it will reach a
    certain percentage of
    >users.
    You can't do bold text in a normal email. Plain text is just
    that -
    plain text. For anything more you need HTML. _If_ you should
    need it.
    Usually plain text serves pretty well and is the most
    efficient way.
    > the line in question is -
    >
    > $body ="Booking request details from website:\n\n";
    >
    > I have tried putting  and ,
    syntax is used in some forum software, but besides that it
    has
    no meaning whatsoever.
    >inside the inverted commas, outside
    >etc, plus tried different declarations within the
    <head>, nothing works! What
    >am I doing wrong?
    You would have to create an entire HTML email with all the
    required
    headers and boundaries. Quite difficult to do by hand with
    PHP's mail()
    function.
    > I am a beginner with this php stuff, please be kind!
    Then you should start simple with plain text. There are some
    classes out
    there which make it easy to generate text and HTML emails
    (phpmailer for
    example), but you should be familiar with PHP coding if you
    want to use
    them.
    Micha

  • Create HTML Contact Form with PHP script

    Hi Everyone
    I have designed a contact form in HTML with PHP script but it doesn't seem to be working. The PHP echo message doesn't appear after I submit the form and the e-mail message is not delivered.  The url address is http://www.dreamaustraliastudytours.com.au/Test/ContactUs.html. Any thoughts would be greatly apprecipated
    Thank you in advance
    Paul

    Hi Ben and Murray
    Thank you for your input on the php script. You nailed the problem on the head. I have up dated the script  and provided it below. I have one more question.
    After the end user submits the form I would like them to be directed to another html file - for example successful.html. Would the code be
    $insertGoTo = "successful.html";
    delete 'Thank you for contacting us. We will be in touch with you very soon.'?
    Once again thank you for your advice
    Regards
    Paul
    <?php
    if(isset($_POST['email'])) {
        $email_to = "[email protected]";
        $email_subject = "New Inquiry";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['first_name']) ||
            !isset($_POST['last_name']) ||
            !isset($_POST['email']) ||
            !isset($_POST['telephone']) ||
            !isset($_POST['comments'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');      
        $first_name = $_POST['first_name']; // required
        $last_name = $_POST['last_name']; // required
        $email_from = $_POST['email']; // required
        $telephone = $_POST['telephone']; // not required
        $comments = $_POST['comments']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$first_name)) {
        $error_message .= 'The First Name you entered does not appear to be valid.<br />';
      if(!preg_match($string_exp,$last_name)) {
        $error_message .= 'The Last Name you entered does not appear to be valid.<br />';
      if(strlen($comments) < 2) {
        $error_message .= 'The Comments you entered do not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "First Name: ".clean_string($first_name)."\n";
        $email_message .= "Last Name: ".clean_string($last_name)."\n";
        $email_message .= "Email: ".clean_string($email_from)."\n";
        $email_message .= "Telephone: ".clean_string($telephone)."\n";
        $email_message .= "Comments: ".clean_string($comments)."\n";
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers); 
    ?>
    Thank you for contacting us. We will be in touch with you very soon.
    <?php
    ?>

  • Problems processing Acrobat forms with PHP

    It's a real simple script. All we do is have users fill out a
    form with information and it's sent to a php file on the server,
    which then sends an e-mail to the admin with the user's input then
    sends a thank you e-mail to the user. I used regular web forms
    using the post method with input tags. The php code recognized the
    values of regular htm forms, but we are converting all of our forms
    to PDF.
    I am having problems with Acrobat form submission. I tried
    sending the data using the http submit/post, but I cannot figure
    out how to stop it from displaying the user input inline (ie.
    name=nameaddress=addresscity=citystate=state). Our clients cannot
    receive e-mails with everything inline like that. I cannot send it
    using mailto: or by the default e-mail either because the clients
    cannot receive attachments.
    I heard that sending the form via xml and parsing it would
    work, but when I use the parser it needs the exact .xml file name
    and every time someone submits a form the file name changes.
    Does anyone know how to use the http submit method in acrobat
    and stop the text from displaying inline, how to parse the xml, or
    of any other ways that will make the text display correctly?

    Please post to the correct forums. At least 2 other
    duplicates of this post are also in the Connect forums, which are
    wholly unrelated to PDF topics.

  • I NEED HELP! Making a flash email form using php.

    Hi, my name is Sean, I'm making a flash contact form using php for a website.
    I'm having a hard time with the php. Can some one help?
    Click here to download my source.

    Satellite A505-S6005 
    ACPI Flash BIOS version 1.40 for Satellite A500/A505 (PSAT6U/PSAT9U)
    When you execute the download file (sat6v140.exe) it decompresses into several files in the sat6v140 folder. 
    Among those, is the readme.txt attached, which explains how to create the CD.
       Burn a CD or DVD from an ISO file
    -Jerry
    Attachments:
    readme.txt ‏14 KB

  • Making email form with instructions in it?

    This might be a very basic question but I cant figure it out hehe ...I am trying to make an email form like on this site...
    http://www.timberline-resources.com/
    I know how to make the form but not with the "Enter Your Email".......I want to know how to do that...so that when you click in it it disappears...
    Thanks in advance for any help.
    T

    Your example site is all done with Flash which is not web-friendly. 
    My solution below uses a bit of JavaScript to clear the input field when clicked.  If nothing is typed in the field, the field value 'Enter Email To Get Updates' comes back.
    <input type="text" name="Your-field-name-here" onclick="this.value='';"  onfocus="this.select()" onblur="this.value=!this.value?'Enter Email To Get Updates':this.value;"  value="Enter Email To Get Updates" />
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Email form with checkboxes

    Hi All,
    I have a form with checkboxes that I finally got to work
    partially. However, there is one problem. If you forget to check
    the checkbox, (Yes or No), you get the error Element is Undefined.
    If you check the checkbox there is no problem and the form goes
    through email. How can I correct the error if the checkboxes are
    not checked. Any help would be appreciated,
    Best,
    Joy

    Joy,
    checkboxes do not pass a value unless they are checked.
    You can do it two ways that I know.
    One way is to set a default so the page does not error:
    <!--- set default so page does not error --->
    <cfparam name="FORM.myCheckbox" default="" type="any">
    The other way is to see if it was checked and do something
    then.
    <!--- If the checkbox is checked do this --->
    <cfif isDefined("FORM.myCheckbox")>
    do something
    <!--- If the checkbox is NOT checked do this --->
    <!--- don't need this cfelse if you don't want to do
    anything --->
    <!--- if it is not checked --->
    <cfelse>
    do something else
    </cfif>
    Ken Ford
    Adobe Community Expert
    Fordwebs, LLC
    http://www.fordwebs.com
    "JRLobdell" <[email protected]> wrote in
    message news:fb6hic$s7a$[email protected]..
    > Hi All,
    > I have a form with checkboxes that I finally got to work
    partially. However,
    > there is one problem. If you forget to check the
    checkbox, (Yes or No), you
    > get the error Element is Undefined. If you check the
    checkbox there is no
    > problem and the form goes through email. How can I
    correct the error if the
    > checkboxes are not checked. Any help would be
    appreciated,
    > Best,
    > Joy
    >

  • Probs with creating a subscribe form with PHP

    Here is my page with the form on -
    http://willowdragonadventureclub.co.uk/index.htm
    The PHP code is attached to this message.
    Or does anyone know a real easy, simple way of creating a
    subsription form?

    I'm new in web design.
    Your form receive the email's user of the webpage ?
    Thanks
    JLRS - MX

  • Flash Contact form with Php Error

    Hi again (".)
    I've making this contact form on flash & i got  the script  for the action script but i'm unable to integrate a php script that would send the mail from my form.
    I'm using two input feilds with instance names as theEmail and theMessage
    Would relly appreciate it if i culd get some help on it. thank you so much.
    Here is the action action script code i'm using -
    snd_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
              if (theEmail.text == "" || theMessage.text == "")
                        theFeedback.text = "Please fill in all fields.";
              else
                        // create a variable container
                        var allVars:URLVariables = new URLVariables();
                        allVars.email = theEmail.text;
                        allVars.message = theMessage.text;
                        //send info to a URL
                        var mailAddress:URLRequest = new URLRequest("mail.php");
                        mailAddress.data = allVars;
                        mailAddress.method = URLRequestMethod.POST;
                        sendToURL(mailAddress);
                        theFeedback.text = "Thank You!";
      theEmail.text = "";
                        theMessage.text = "";

    Actaully is i got this Action script from a tutorial and i learnt from it but the mail.php was not part of the tutorial.
    Would you be able to provide me a php script based on the instances names i mention above?

  • Customized emailed forms with Acrobat 9

    Using systems with XP or Vista, Office 2003 or 2007 and Acrobat 9.0 standard or pro, is it possible to create a customized form to mail out and collect the responses via email into the answers file?

    Yes. There are a number of new features available with Acrobat 9, many of which are covered in the following:
    https://admin.na3.acrobat.com/_a723755887/p31325014/
    George

  • Email Form With No Email Address

    Hello,
    I am trying to get more information on how I can help my
    clients reduce
    spam. I've normally built my forms by using:
    <form action=http://www.domain.com/cgi-sys/formmail.pl...
    <input type="hidden" name="recipient"
    value=[email protected]>
    but this obviously puts the email address right in the hands
    of the spam
    crawlers.
    Is there a way to eliminate having to show your recipient
    value in the HTML?
    Can someone tell me how this is done?
    Thanks in advance.

    "Nancy O" <[email protected]> wrote in
    message
    news:fdoo9p$516$[email protected]..
    > I use this one from DB Masters. It's a php formmailer
    script that
    conceals
    > email address inside the script - not in the form.
    >
    http://www.dbmasters.net/index.php?id=4
    >
    >
    > --Nancy O.
    > Alt-Web Design & Publishing
    > www.alt-web.com
    >
    >
    >
    > "TxWebdesigner" <[email protected]>
    wrote in message
    > news:fdojm4$if$[email protected]..
    > > Hello,
    > >
    > > I am trying to get more information on how I can
    help my clients reduce
    > > spam. I've normally built my forms by using:
    > >
    > > <form
    action=http://www.domain.com/cgi-sys/formmail.pl...
    > >
    > > <input type="hidden" name="recipient"
    value=[email protected]>
    > >
    > > but this obviously puts the email address right in
    the hands of the spam
    > > crawlers.
    > >
    > > Is there a way to eliminate having to show your
    recipient value in the
    > HTML?
    > > Can someone tell me how this is done?
    > >
    > > Thanks in advance.
    > >
    Note this utility has just been updated today to 4.5 (was in
    beta) and
    includes a number of optional Form SPAM Control fields
    (hidden field, timer,
    CAPTCHA e.g.) if you find your form being used to send SPAM.
    Jim

  • Email Form with Combo box

    Hi guys,
    I need to add a actionscript and php code to the attached
    codes. As you can see I already have the codes for the name, email
    address, message etc...what I need is how to write the codes for
    these six combo boxes:
    Arrival Date: Day, Month, Year
    Departure Date: Day, Month, Year

    again, you assign a variable.  the selected radiobutton's data and/or label isn't going to magically be sent to the php file.
    for example, if you have sendLV and receiveLV loadvars instances, you can use:
    sendLV.rbData=yourradiogroup.selection.data;
    sendLV.yourothervariables=yourothervariables;
    sendLV.sendAndLoad("yourphp.php",receiveLV,"POST");

  • Email form using radio buttons

    Hello! I hope someone can help me out with this one!! I will
    start off by saying that I don't know too much about action script,
    but i have created a Flash email form with just text fields that
    has worked. Now I need to create a form with three sets of radio
    button groups. I need to pass the variables to a php email script.
    Can anyone guide me through this?

    THanks for you help Rob, but I still can't get it to work
    correctly. I'm not getting any email at all. I have a radio button
    group set up. The groupName is "Group1". Then there is a results
    text area on the screen with a var name of "results_ta". My email
    text area's var = "email_ti". I have a submit button component on
    the screen as well. The instance name is "submit_button". Below is
    the flash code that is on the first frame of my movie:
    var submitListener:Object = new Object();
    submitListener.click = function(evt:Object) {
    var result_lv:LoadVars = new LoadVars();
    result_lv.onLoad = function(success:Boolean) {
    if (success) {
    result_ta.text = result_lv.welcomeMessage;
    } else {
    result_ta.text = "Error connecting to server.";
    var send_lv:LoadVars = new LoadVars();
    send_lv.email = email_ti.text;
    send_lv.radioOne = group1.selection.data;
    send_lv.sendAndLoad("sendmail.php", result_lv, "POST");
    //send_lv.sendAndLoad("sendmail.php", "POST");
    submit_button.addEventListener("click", submitListener);
    stop();
    Next my php code is as follows:
    <?php
    $sendTo = "[email protected]";
    $subject = "My Flash site reply";
    $headers = "From: " . $_POST["email"] ."\r\n";
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    $headers .= "Return-path: " . $_POST["email"];
    $message = $_POST["radioOne"];
    mail($sendTo, $from, $subject, $message, $headers);
    ?>
    Do you see anything that is off? I think I've lost it,
    because I had an email being sent, it just didn't add any of the
    info, but now I'm not even getting an email sent!! I'm in despair
    because the project is due tomorrow!!!
    thanks!

  • Hello, I am trying to build a pizza menu where i can click on a pizza pic or link and than this selction is added to a muse email form, without the users need to retyp it. Anybody know how to do that? thank you for your help Peter

    I would like to know how to add a selection form a website to an muse email form with out the user to having to enter it but only clicking on the selected item. This is for a pizza menu.

    You can try this :
    http://www.qooqee.com/adobe-muse-widgets/astrolabe-muse-menu
    Thanks,
    Sanjit

Maybe you are looking for

  • Problem in Sales order create using BAPI with reference to quotation

    Hi, I am creating a sales order from Quotation using BAPI /AFS/BAPI_SALESORD_CREATEFDATA. The Sale order is getting created and the document flow is updated. When i check the status of quotation it is "OPEN". Ideally when a sale order is created in V

  • Can not start WebLogic in Eclipse. Error: "Could not find the main class."

    I have installed Eclipse 2.0 and WebLogic Server 6.1. and the WebLogc plug in from GENUITEC (and jdk1.3.1_04, on Win2K Server). After I have done the configuration, the WebLogic start/stop buttons are integried into the Eclipse Toolbar, but when I cl

  • Funds trf through F110

    Hi, The clients bank has provided an online payment service through IDOC. The payments have to be made through F110. Now the client wants to use this facility to make book transfers (between their own accounts with in the same bank). Presently they a

  • HT202447 Finder frizzes, makes my iMac so slow ...

    Since my system was updated automatically installing java 8, Finder frizzes, makes my computer so slow and I have to end up rebooting the computer. Any advise? How can I fix this problems? Thank you

  • Want to run 3 monitors

    I have a T520 on a mini-dock.  I want to run three monitors, currently am running two.  Can I run all three off the mini-dock or will I have to use an external video card?  Any suggestions will be appreciated!