Quick help with client email form

I just created my form and .php file to send to an email address. All the input fields work correctly, except one. I can not a drop of water to the low sending (main category) field to send me the presentation. The form works fine on the Web site, e-mail leaves a field empty. Any help in my coding would be greatly appreciated.

form:

< do action = "merchantsignup.php" method = "post" id = "contact_form" > "

< Center > < table width = "637" border = "0" >

< b >

< td > company name:

< br / >

< input type = "text" name = "name" / > < table >

< td > business telephone:

< br / >

< input type = "text" name = "phone" / > < table >

< td > Business Email:

< br / >

< input type = "text" name = "email" / > < table >

< /tr >

< b >

< td > business address:

< br / >

< input type = "text" name = "address" / > < table >

< td > city & Zip:

< br / >

< input type = "text" name = "city code" postal / > < table >

< td > Business Web page:

< br / >

< input type = "text" name = "Web page" / > < table >

< /tr >

< b >

< td > main category < br / >

< select name = "Main category" >

< option value = "Food" > food < / option >

< option value = "Soda" > Soda < / option >

< option value = "Candy" > Candy < / option >

< / select >

< table >

< td > sub-category:

< br / >

< input type = "text" name = "Category2" / > < table >

< td > < p > < / p > < table >

< /tr >

< b >

< /table >

< td > < p > on the Business: < br / >

< textarea cols = "88" lines = '8' name = "a connection" > < / textarea >

< / h3 >

< /p >

< p > < input type = "submit" name = "submit" value = "Send" / >

< input type = "reset" name = 'reset' value = 'Clear form' / > < / p >

< / make >

.php files

<? PHP

/ * Email Variables * /.

$emailSubject = "market entry";

$webMaster = ' [email protected] ';

/ * Data variables * /.

$name = $_POST ['name'];

$phone = $_POST ['phone'];

$email = $_POST ['email'];

$address = $_POST ['address'];

$city = $_POST [' city/postal code'];

$webpage = $_POST ['page'];

$main_category = $_POST ["main"];

$category2 = $_POST ["Category2"];

$about = $_POST ['about'];

"" $copy_photo [0] = "";

$body = < < < NEM

< br > < hr > < br >

Name: $name < br >

Phone: $phone < br >

E-mail: $email < br >

Address: $address < br >

City: $city < br >

Wegpage: $webpage < br >

Main category: $Main < br >

Category2: $category2 < br >

Topic: $about < br >

NEM;

$headers = "from: $email\r\n";

$headers. = "content-type: text/html\r\n";

$success = mail ($webMaster, $emailSubject, $body,

$headers);

/ * Results made in the HTML form * /.

$theResults = < < < NEM

< html >

< head >

< title > < /title > message sent

< meta http-equiv = "refresh" content = "3; URL =http://lf.com/index.shtml' > .

< style type = "text/css" >

<!--

{body

background-color: #000;

do-family: Verdana, Arial, Helvetica, without serif.

font size: 20px;

make-style: normal;

line-height: normal;

make-weight: normal;

Color: #FF0000;

text-decoration: none;

padding-top: 400px;

margin left: 250px;

Width: 800px;

}

->

< / style >

< / head >

< div align = "center" > thank you for your communication! You will receive an email from us shortly! < / div >

< / div >

< / body >

< / html >

NEM;

echo "$theResults";

? >

Any help would be greatly greatly appreciated!

Your form does not match your script.  Try to be consistent in your naming conventions.  Also, PHP is case sensitive be careful at that as well.

Change this in your form:

And change the variable data in PHP:

$main_category = $_POST ['main'];

to do this:

$main_category = $_POST ['main_category'];

It should work now.

Nancy O.

ALT-Web Design & Publishing

Web | Graphics | Print | Media specialists

http://ALT-Web.com/

http://Twitter.com/ALTWEB

http://ALT-Web.blogspot.com/

Tags: Dreamweaver

Similar Questions

  • I want to send my message by mail with the email form that I have already installed

    I want to send my message by mail with the email form that I have already installed

    original title:<>

    Hi Michael,

    I suggest you to check if you get the same message in Internet explore, if you use Firefox I suggest you contact Firefox for using the link below.
     
    Hope this information helps.
  • How can I get ahold of a LIVE person? I need HELP with my email account (Email removed for privacy), you can contact me at Email removed for privacy or * withdrawn * please someone HELP! Mike Golab

    How can I get ahold of a LIVE person? I need HELP with my email account (* address email is removed from the privacy *) you can contact me to the * address email is removed from the privacy * or * remove * please someone HELP! Mike Golab

    E-mail address is removed from the privacy *.

    No, and that has nothing to do with this old thread. This is a scam that last for years. Microsoft never does unsolicited phone calls.
     
     
     
     
     

    Scams by e-mail or web: how to protect yourself
    http://www.Microsoft.com/security/online-privacy/phishing-scams.aspx
     
     
     
     

    Aggressive, persistent Windows tech support fraudsters continue to track consumers
    http://www.Computerworld.com/s/article/9248122/Aggressive_persistent_Windows_tech_support_scammers_continue_to_stalk_consumers
     
     
  • Problem with my email form

    Hi all

    I ran into a small issue and cannot see what is causing my email form does not work. I did a few times now and that you have copied the actionscript code that I currently work but the it still does not work. The form can be seen live here and the flash file can be downloaded from here.

    I am enclosing the code to my flash below form and if anyone requires the code to my page email.cfm (this is the page that processes and sends emails) so please let me know. I'd appreciate any help I can get with this, and I work on it for a few days now and have rewritten the code about 6 times - it starts to do my head in.

    Thank you in advance.

    FOR INFO:
    the difference between
    var _loc3 = new LoadVars();

    and
    var _loc3:LoadVars = new LoadVars();

    There nothing regarding the bytecode generated.

    But it is a best practice. It allows code and type etc. check indicators

  • Please help me with my email form?

    Hello

    I've set up a contact form on Muse pointing to my email address [email protected] .  I use google apps for businesses to manage e-mails from my company.  I get the message error "the server has encountered an error.'


    Here is the really strange part.  ONLY, I get this error when sending a [email protected] e-mail address.  Any other e-mail address goes through but not addresses ending with gmail.com.  Please please help.  I tried Googling, read the article that you have provided and nothing is explain this.


    Thank you in advance,

    Lefteri

    If I'm not mistaken, notification form is not received only if the address email @gmail.com is used in the submission of the form?

    If this is the case then please contact your host and let them know that @gmail.com addresses are filtered, in the case where miss me something here, please let me know.

    Thank you

    Sanjit

  • Help with the contact form

    HI guys,.

    Has been woundering if anyone could help me with the php/html contact form.

    I already tried a more complex form of php, but was not then go try a simpler this time around.

    It sends the form through just his Blanck...

    Any advice would be great

    HTML:

    < id section 'contact' = class = "4" >

    < div class = "container" >

    < header >

    Contact < h2 > < / h2 >

    < / header >

    < p > please do not hesitate to get in touch, to < a > < /a > mymail, or use the form below. < /p >

    < are method = "post" action = "send_form_email.php" >

    < div class = "row half" > < div class = "6u" >

    < input type = "text" class = "text" name = placeholder "name" = "Name" / >

    < / div >

    < div class = "6u" >

    < input type = "text" class = "text" name = "email" placeholder = "Email" / >

    < / div >

    < / div >

    < div class = "row half" > < div class = "12u" >

    < textarea = "message" = "Message" placeholder name > < / textarea >

    < / div >

    < / div >

    < div class = "row" >

    < div class = "12u" >

    < input type = 'submit' class = "submit button" value = "Send the Message" >

    < / div >

    < / div >

    < / make >

    < div style = "" clear: both; "> < / div >"

    < / div >

    < / section >

    < / div >

    PHP:

    <? PHP

    $EmailFrom = "";

    $EmailTo = 'my email ';

    $Subject = "message from Site."

    $Name = Trim (stripslashes($_POST['Name']));

    $Email = Trim (stripslashes($_POST['Email']));

    $Message = Trim (stripslashes($_POST['Message']));

    validation

    $validationOK = true;

    If (! $validationOK) {}

    Print "< meta http-equiv =-"refresh\"content =------"0; " URL = Error.htm\ "' >"; "

    "exit";

    }

    prepare the body of the email text

    $Body = "";

    $Body. = "name:"; "

    $Body. = $Name;

    $Body. = « \n » ;

    $Body. = ' e-mail: '; "

    $Body. = $Email;

    $Body. = « \n » ;

    $Body. = "message:"; "

    $Body. = $Message;

    $Body. = « \n » ;

    send email

    $success = mail ($EmailTo, $Subject, $Body, "in: < $EmailFrom >" "");

    Redirect to the page of the successful

    If {($success)

    Print "< meta http-equiv =-"refresh\"content =------"0; " URL = index. html\ "' >"; "

    }

    else {}

    Print "< meta http-equiv =-"refresh\"content =------"0; " URL = Error.htm\ "' >"; "

    }

    ? >

    Linux servers are case-sensitive - Email is not the same as e-mail.  Form in your HTML form field names must exactly match the PHP variables.

    Nancy O.

  • Help with sending email Windows Live Mail error ID: 0x80070057__

    Hello

    I use Windows 7 and Windows Live Mail 2011 on my computer.

    I can receive emails, but I can't send them. Which is painful enough when you need to communicate with your customers.
    When I send an email, I get this error message and have no idea how to fix this.

    An unknown error has occurred.

    Server: 'smtp.telus.net '.
    Windows Live Mail error ID: 0 x 80070057
    Protocol: SMTP
    Port: 25
    Secure (SSL): No.

    PS... I'm super not savy with tech talk

    Please please please help!

    Post your question in the Windows Live Mail PortalSolution Center. Brian Tillman [MVP-Outlook]
    --------------------------------
    https://MVP.support.Microsoft.com/profile/Brian.Tillman
    If a response may help, please vote it as useful. If a response to the problem, please mark it as an answer.

  • Need quick help with a vector mask

    Hey, I'm going crazy with this seemingly simple task and cannot find the answer on Google. Thanks in advance.

    I have a red circle with a white arrow inside/on it. I want to create a vector mask that makes the whole image transparent where the arrow is, as if the red circle is a wall and the white arrow is a window. The rest should just be a red circle with an arrow inside hole. How can I do that using my existing forms?

    Screenshot 2015-09-11 11.16.08.png

    Hello

    It's pretty easy

    merge the two layers

    Select the white arrow in the Quick Selection tool and remove this part.

    Now, you'll get what you ask.

    You can create a copy of both layers first to test this.

    ~ Jitendra

  • Try to make a php file work with my email form

    Hello

    Going a little crazy trying to link my php with my HTML file and actually make it work.

    He (php file) continues to come up with a syntax error on line 37 - code indicators may not work etc etc but there is no error in what I see - can anyone else point out the course for me? This leads me in the corners!

    my code:

    <? PHP

    / * Subject and Email Variables * /.

    $emailSubject = "form";
    $webMaster = ' [email protected] ';

    / * Collection of data Variables * /.

    $nameField = $_POST ['name'];
    $addressField = $_POST ['address'];
    $telephone1Field = $_POST ['telephone1"];
    $telephone2Field = $_POST ['telephone2"];
    $emailField = $_POST ['email'];
    $name2Field = $_POST ['name2'];
    $ageField = $_POST ['age'];
    $dobField = $_POST ['dob'];
    $commsField = $_POST ["comms"];
    $messageField = $_POST ['message'];

    $body = < < < NEM
    < br > < hr > < br >
    Name: $name < br >
    Address: $address < br >
    Phone (day): $telephone1 < br >
    (Mobile) phone: $telephone2 < br >
    E-mail: $email < br >
    Childs name: $name2 < br >
    Starting age: $age < br >
    Childs Birth Date: < br > $dob
    Favorite form of communication: $comms < br >
    Message: $message < br >
    NEM;

    $headers = "from: $email\r\n";
    $headers. = "content-type: text/html\r\n";
    $success = email {$webMaster, $emailSubject, $body, $headers};

    / * Results made in the HTML form * /.

    $theResults = < < < NEM
    < html >
    < head >
    < title > < /title > Xxx
    < meta http-equiv = "Content-Type" content = text/html"; charset = iso-8859-1 ">"
    < style type = "text/css" >
    <!--
    {body
    background-color: #f1f1f1;
    do-family: Verdana, Arial, Helvetica, without serif.
    do-size: 12px;
    make-style: normal;
    line-height: normal;
    make-weight: normal;
    Color: #666666;
    text-decoration: none;
    }
    ->
    < / style >
    < / head >

    < div >
    < div align = "left" > thanks for your message, your email will be answered very soon! < / div >
    < / div >
    < / body >
    < / html >
    NEM;
    echo "$theResults";

    ? >

    Line 37 is the following:

    $success = email {$webMaster, $emailSubject, $body, $headers};

    It should be this:

    $success = mail ($webMaster, $emailSubject, $body, $headers);

    Also the From header: is: $headers = "From: $email\r\n"; but I do not see the variable defined for $email

    Also, you need to know about electronic fuel injection. Someone could inject your headers and add additional BCC: addresses to send emails to multiple recipients undisclosed through your mail script. You would use your script to turn your server in a host for spam! Sanitize your fields to prevent injection attacks! Safety must be the priority of the followed firt of functionality. If it's not safe, it should not work

  • Quick help with school work

    I am a student current I just in a web design class, I was sent home with some homework see what we know and I have a question I am confused about. Wondering if anyone could help me with this question:

    Write an advanced CSS selector which is precisely the type of entry or the name for the following HTML code:

    < input type = "text" name = "address1" value = "" / >

    Thank you very much student web and indvidual eager to learn from their peers

    Hello

    As is the work of the school then I don't really ' ' will give you the answer, but if you read the article it is included - http://articles.sitepoint.com/article/style-web-forms-css.

    PZ

  • Need help with sending Email with LabWindows 8.5 or 9

    Hello

    I try to send an email to attach files by using InetSendMail function and prospects activeX and always having unsuccessfully excel thereon.

    I'm still a student so I don't have much time to research these functions, if im asking for an example of code to work for this problem.

    Thank you're help in advance...

    I also tried to change the examples in the package

    Hello

    See using system and functions of LaunchExecutable (Ex).

    He explains how to make command-line calls in CVI.

    You will probably have to build the appropriate using sprintf, Fmt, etc., depending on your needs command line string.

  • Need QUICK help with XP Recovery Console

    My computer has rejected the slightest error and says to insert disk at startup to enter R for repair through the repair console and windows (he said I was missing a windows / file fat32.) I followed these instructions and it took me to the recovery console which someone else told me to enter chkdsk/r at the command prompt I did and he told me that the volume appears to contain one or more unrecoverable problems. All solutions on how to solve this problem or what might be the problem or maybe I'm not in the right order? Please help me soon I have files on this computer, that I need.

    Start the computer with a Linux Livecd such as Knoppix or a Bart PE and copy the data files on an external hard drive or USB key. Then test the hard drive as it looks to be a failure.

    http://www.Knoppix.NET
    http://www.nu2.nu/pebuilder/ - Bart PE Builder

    http://www.elephantboycomputers.com/page2.html#Hardware_Tshoot

    If you can't do the work yourself (and there is no shame in admitting this isn't your cup of tea), take the machine to a professional computer repair shop (not your local equivalent of BigComputerStore/GeekSquad). MS - MVP - Elephant Boy computers - don't panic!

  • BlackBerry Smartphones need help with my email on my Blackberry Curve

    I got an email from Yahoo (POP) and an e-mail to AOL (IMAP) address.  I use firefox thunderbird on my PC and both operate independently of each other. However, I have problems on my Blackberry Curve.  When the email is sent to my Yahoo account, it appears on my AOL account. (I want to prevent this.  In the next miss calls appear on my AOL account and I would like it to appear on my Yahoo account.

    I want two emails to get only the mail that is intended for each account. Can someone help me? Thank you

    Your BlackBerry will be a message main file "Messages". You will have two more, one for Yahoo, and one on behalf of AOL.

    All emails will come in the main folder of Messages, by default, and which cannot be changed. I suggest you hide your folders from Yahoo and AOL, since they basically duplicate what is in the main messages folder.

    Some people will hide the folder key messages and let the other email will gather visable specific folders, however since your messages folder main is also the only place your PIN and other messages of type, you may miss one of them if you hide this folder.

    For calls to your main Inbox - press the green phone dialing > Menu (to the left of the trackball) and press Options > Call Logging. The NONE value and save.

    If you have any other questions, please ask.

  • Help with alerts Email blackBerry Smartphones

    I have alerts email on silent, but when the sounds together are set to normal, I always get an alert when an e-mail arrives. I want to just get an alert when the phone rings or a text is available in.  Any help?

    You can set it to phone calls only or if you also need the text alerts, you will need to create a custom profile.

  • Need help with a flash form

    Hello

    I have a customer who would like a form like this, http://www.plus.approvedprintingcompanies.co.UK/UK/questionnaire6/UK-companies.aspx?gclid= CI_ku7L5850CFU0B4wodDDjIIw # 

    I guess it is Flash, I really know a bit about Dreamweaver and have managed to design a site with this. I don't know anything about Flash, although I have the program. I am able to easily create a form similar to this one, and then apply it in Dreamweaver?

    I know how to create a form in dreamweaver and then once that he argued, it is sent to an e-mail address. But this form looks like it is in individual pages, or it works in the same way?

    Can someone tell me if I can create something like this and place in dreamweaver? And there at - it a tutorial that I can use?

    This form is not a Flash design.  I can't tell you how to design, but you can look at the source code of the page to see it.

Maybe you are looking for