Send form data via email after posting to MySQL database

I have created a form in DreamweaverMX 2004 and then tied it to mySQL database so that on submit the data posts to the database.
This works fine. It also goes to a "success" page just fine. I then added in some php code to also email a few of the fields from the form to a specific email address. This functions correctly using this code below (the email does go - the "from" email address has my login for MySQL database) EXCEPT that the data from the fields does not come through. The field labels are there as indicated below and the email is formatted correctly, but the data doesn't come through.
mail( $to = "[email protected]", $subject = "Someone has submitted an application",
$content= "Essay 1: ".$Essay1."\r\n"
."Essay 2: ".$Essay2."\r\n"
."Essay 3: ".$Essay3."\r\n"
."Essay 4: ".$Essay4."\r\n"
."Essay 5: ".$Essay5."\r\n");
What am I doing wrong?
That's problem #1 - then problem #2 is that I actually also need to send the ID code in this email for the specific record which has been created in my database so the end recipient can associate the email with that specific ID later for other purposes. So even if I figure out problem #1, I'm not sure that I can use this code for problem #2 because the field isn't on the html form, but actually created by the database upon submission.
Any suggestions would be helpful!
Thanks

Moved to the Dreamweaver Application Development forum, which deals with PHP and other server-side issues.

Similar Messages

  • Send Form Data to PC via USB cabile

    Respected SIr/Madam
    I want to send Form Data or RMS Data to PC via USB data cabile .
    Is it Possible ?
    if it is possible then please give me some idea how to make it
    thanks in advanse
    Souvik

    Yes ..
    First ensure that driver for the Data cable is installed.
    Get the comm port number .
    In windows
    control panel->Phone & Modem options ->Modems..
    The Comm port no for the data cable is present in Attached To column.
    In Linux ..
    you can get it by checking the Device options
    Next
    U need to establish a connection between PC & Handset using the comm port.
    Note that The comm port obtained here is the reference commport in the PC..
    U can get the comm port number in Handset using the J2ME application itself..
    String port;
    String ports = System.getProperty("microedition.commports");
    int comma = ports.indexOf(',');
    if (comma > 0) {
    // Parse the first port from the available ports list.
    port = ports.substring(0, comma);
    } else {
    // Only one serial port available.
    port =ports;
    /*Below is a code example showing how you can use serial I/O API to open a connection and read/write
    to it. */
    //using commconnection since midp2.0
    CommConnection commConn =
    (CommConnection)Connector.open("comm:COM0;baudrate=115200", Connector.READ_WRITE,
    true);
    InputStream iStream = commConn.openInputStream();
    OutputStream oStream = commConn.openOutputStream();
    String sMessage = "send";
    oStream.write(sMessage.getBytes());
    Thread tRead = new Thread() {
    public void run() {
    while (true) {
    StringBuffer sb = new StringBuffer();
    while(true) {
    int c = iStream.read();
    if(c != '\r') {
    sb.append((char)c);
    else
    break;
    try {
    sleep(1000);
    catch (InterruptedException e) {}
    tRead.start();For some handsets that do not support CommConnection, you can use StreamConnection in place of
    CommConnection with the same result:
    StreamConnection commConn =
    (StreamConnection)Connector.open("comm:COM0";baudrate=115200"); The above code is for J2me application running on Handset ...
    In PC you can refer it using the comm port identified from the Control Panel.

  • How do i send a file via email so it opens in booklet form to other people

    how do i send a file via email so it opens in booklet form to other people

    You would appear to be doing the right method as in this work through:http://support.en.belgacom.be/app/staticpages/devices/en/#/nokia/c3-00/email/sending-an-email-messag...
    Is there similar problem with Email without attachment?
    Happy to have helped forum in a small way with a Support Ratio = 37.0

  • Auto send of PO via email once approved

    hi Gurus,
    We want to have an automatic sending of PO via email, once approved it is directly send to the vendor email no more t-code going to use. it is possible? what configuration we need to this set-up?
    thanks,
    Marina

    -You need to maintain  e mail i.d in Vendor master.
    -You need to maintain User  email id in t code SU01, from which the mail need to be send.
    Configuration for this.
    - Go to NACE. 
    -Select EF and click on OUTPUT TYPES. 
    -Then select Output Type NEU and click on processing routines . 
    -In that you have to add a new entry - medium 5 - External Send
    - Communication Strategy - CS01. 
    -Then you need to assign a program, form routine and form. 
    -You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK. 
    -Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN . 
    -For subject of the mail go to Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    -Under General data -> Replacement of text symbols give program as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE.
    -Now while creating a new purchase order , change the medium to External Send . 
    -Then go to Communication Method and select CS01.
    -  Need to Release the P.O in ME29N
    - Go to tcode ME9F . 
    - Execute. 
    - Select the checkbox and click on Output Message. 
    - You will get a message MAII 00000000000001 generated . 
    - Use note no 191470
    You can see the details in transaction code : Scot

  • Send form data from Coldfusion to ASP

    I need to send form data from CF to ASP.
    I submit a CF page and validate it on my end with another CF
    page, which then needs to post the results to an asp page on
    another site. The post has to be sent via SSL and I don't need to
    and cannot receive any status message back from the remote ASP
    site. Any suggestions would be greatly appreciated. I was thinking
    some type of cfhttp, but I am not very familiar with its usage.
    Thanks!

    It doesn't matter what type of page you are sending to as
    long as it can handle the data that is sent. Either a form or
    cfhttp will work.

  • Sending 'Dunning Letters' via Email ? - -has anyone succeeded ??

    Hi
    Has anyone had any joy with sending Dunning letters via email at all
    We can get it to work via FAX , but get the following error when trying to send via email
    'connection error on node'
    even tho, there is nothing wrong with the node at all
    via SCOT , we have the default conversion as 'raw text to txt'   which works with everthing else
    If we change to 'raw text' to 'pdf'  we actually get two PDF's - one is blank however
    When viewed via SOST, you cannot open it straight up, you have to open an attachment
    when we queried this with SAP, they say that dunning letters are set up to open as attachments
    The function module is almost identical to that used by statements and remiitances, which works absolutely fine
    I have posted this on a more technical forum as it is not an FI issue, it is a technical problem, which i hope someone has come across and able to resolve for us
    Many thanks
    Tony

    Hi
    Have you see SAP Note 1042992 - Dunning by mail w/ SAPscript: Introductory text w/ attachmnt? Please, check the steps that this note suggests. At a release 46B I did with the enhancement F150D001 (at ECC 5.0 it is too), and you have a demo coding in include LX150F01.
    I hope this helps you
    Regards
    Eduardo
    PD: I forgot, according your coding check what is the email address for the customer, if the customer doesn't have email, then the letter goes to the SPOOL order. Check it in the include ZX* or in the BTE.
    Edited by: E_Hinojosa on Mar 1, 2012 5:22 PM

  • Excel file can't open via email after upgrading to OSX 10.9.2

    After upgrading to OSX 10.9.2, my Excel files are not readable when sent by email. My version for Excel is 2008 for Mac V12.3.6.
    I have no trouble opening Excel on my computer but cannot seem to send Excel files via email.

    Thanks. Tried that and it works but I had found another alternative.
    Didn't realise but my Excel file had the extension missing even though it was saved as xlsx. To solve the problem, I just clicked on 'Append the File Extension' when I 'Saved As' and it worked. Thanks for the alternative help anyway.

  • I cannot use share on Pages to send a document via email. Used to be able to do this but upgraded to OSX Lion

    I cannot use "share" on Pages to send a document via email.  I used to be able to do this.  Not sure what I have done.  Can anyone help me out?

    No. iDisk service is not available in iCloud. There are other third-party services like Picassa, MediaFire, Photobucket, Tumblr.
    Basic Information About Moving From MobileMe to iCloud
    Apple IDs and iCloud
    Creating an iCloud account- Frequently Asked Questions
    Frequently asked questions about the MobileMe transition and iCloud
    MobileMe services that no longer sync after moving to iCloud
    MobileMe- About moving to iCloud

  • Unable to send a photo via email

    I am currently trying to sending a photo via email from I-photo, I get the following message ====  The email server didn’t recognize your username/password combination.
    Can anyone please advise ?????

    iPhoto Menu ->
    Preferences ->
    Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • In iphoto my photos do no appear just a blank dated square. Somehow I messed up when trying to send a photo via email.I cannot not see any but 4 photos.

    Help!   In iphoto my photos do not appear just a blank dated square. Somehow I messed up when trying to send a photo via email.I cannot not see any but 4 photos.I tried all of the solutions that Apple suggested. Somehow I think that i am trying to send ALL my photos in an email.How do i unhide all of my photos?

    Did you launch iPhoto with the Option(Alt) and Commnad keys held down like Terence suggested?  If you did it properly you will get this window:
    The second option is the one you want to run.
    OT

  • Every time I send a photo via email, I have to type in my password.  I'd like to disable that.

    I can't seem to send a photo via email without having to type in my password.  Can I disable that?

    Hello, olyhank. 
    Thank you for visiting Apple Support Communities.
    Here is an article that will walk you through some troubleshooting steps for this issue.  Start with the attached section in the article below.
    Tip: If you see a sheet or dialog that states 'Enter the password for user "email address'", this indicates that the email service provider is having an issue with the password being sent by Mail, or there is an issue with the email account. Contact the email service provider for support. ChooseWindow > Connection Doctor click "Show Detail" then click "Check Again". The information displayed in the "Show Detail" drawer may include details from the email service provider about what the issue is. Look for headers that start with "[ALERT]".
    OS X Mail: Troubleshooting sending and receiving email messages
    http://support.apple.com/kb/ts3276
    Cheers,
    Jason H.

  • IPhone 5 - Insert picture from email doesn't work, but sending in Photos via email does?

    I have an issue with a user here at my office.  When composing an email and they insert a picture from their phone, it sends the email, but the picture is not attached.
    However, if we go to Photos and send the photo via email, it works fine.
    He had been able to send fine up until yesterday afternoon and then it stopped working, so I believe he's done something, but I have no idea what.  Took a look at his settings and everything seems normal.  Also, rebooted his phone, but the same issue occurs.  And as far as I know, he's the only one having this issue.
    We are running email via Lotus Traveler/Domino, but I've tested my iPhone and everything sends fine, so I don't believe this is a server issue.
    Does anyone have any idea of what to try here?
    PS - user is using ios7.1 (same as mine)

    I have an issue with a user here at my office.  When composing an email and they insert a picture from their phone, it sends the email, but the picture is not attached.
    However, if we go to Photos and send the photo via email, it works fine.
    He had been able to send fine up until yesterday afternoon and then it stopped working, so I believe he's done something, but I have no idea what.  Took a look at his settings and everything seems normal.  Also, rebooted his phone, but the same issue occurs.  And as far as I know, he's the only one having this issue.
    We are running email via Lotus Traveler/Domino, but I've tested my iPhone and everything sends fine, so I don't believe this is a server issue.
    Does anyone have any idea of what to try here?
    PS - user is using ios7.1 (same as mine)

  • When trying to send a photo via email, I am prompted to setup an email account even though email is already setup.  What would cause this?

    when trying to send a photo via email, I am prompted to setup an email account even though email is already setup.  What would cause this?  Better yet, how do I fix it?

    I have checked this on my device.  I see a Default account under Messages created outside of Mail will be sent from the default account.  There is an account selected, though it does not show my exchnage account.  If it is only an exchange accout, can that not be used for this?

  • How to send a link via email

    how do I send a link via email with my ipa

    LIke this:
    http://i1224.photobucket.com/albums/ee374/Diavonex/1906911d.jpg

  • TS3276 I need to send a photo via email as an attachment and not it shown in the body of the email?

    I need to send a photo via email as an attachment and NOT have it shown in the body of the email?  Please help.

    To make attachments not appear in the body of the e-mail as a default, try using the Applications/Utilities/Terminal command below. I suggest copy and paste.
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool YES

Maybe you are looking for

  • How can I see all references to primary key

    How can I make a query for my primary key to see the detail foreign keys and see which key is not available?

  • My network extender is dropping iPhone 5 calls?

    We've had our Samsung Network extender (model SCS-2U01) for about 6 months and it has worked fine. Now both our iPhone 5s are suddenly dropping incoming and outgoing calls. It seems like our phones going "off" the extender or just not coming back on

  • Human Workflow Issue in 11.1.1.6

    Hi Experts, I working on a Human Workflow Project in SOA Suite 11.1.1.6. My requirement is to pass the HTML data as content to Human Workflow Task to Notification user. Do elaborate more, the user will get email notification from Human Workflow where

  • Does anyone know what screen tone should be?

    I received a replacement phone yesterday. It has a warmer, deeper tone than the phone I got on Wednesday which has a cooler, more blue tone. I was satisfied with the replacement, but I have had several people tell me it has a problem. They tall me it

  • Inter-company Billing Payment Idoc posting

    Hi Friends, We have got the regular inter-company billing scenario, After creating the inter-company billing document IV we post the payment Idoc through the output processing.           Here IV document will be created by the user from the deliverin