To add the sender addresses in the header of my PHP form (somehow)

Hi all

I have a PHP form that works very well and our support team to send an email with the header 'medium '.

I was asked to fix this form to include the address of the sender in the header of the object so that the support team can filter more easy and faster response.

Any help would be very much appreciated indeed. The form code is below, made me know if you need the entire page.

Thanks in advance,

Bradley

My current form part PHP looks like this: (and the HTML is below in blue)

<? PHP

If ($_GET ['action'] == "e-mail")

{

$msg = ' the next person need support: \n\n ";

$msg = $msg. "First name:" $_POST ['FirstName']. " " . $_POST ["LastName"]. "\n";

$msg = $msg. "Such:". "." $_POST ['such']. "\n";

$msg = $msg. "Email:". "." $_POST ['FROM']. "\n";

$msg = $msg. "Support: $_POST ['support']. "\n";

$msg = $msg. "Model: $_POST ['model']. "\n";

$msg = $msg. "Comment:". "." $_POST ['comments']. "\n";

        $to =" [email protected] "; "

$subject = 'medium ';.

$from = ' to: $_POST ['FROM'];

mail ($à, $subject $msg, $emailFrom, $from);

Header("Location:Support2.php");

}

? >

and the HTML part of the ODM is like this:

< form id = "form1" name = "form1" method = "post" action = "support.php? action = email" >

< table width = "700" border = "0" cellspacing = "10" cellpadding = "10" >

< b >

< td valign = "middle" class = "formtext" > * first name: < table >

< td width = "455" valign = "middle" > < label >

< input name = "FirstName" type = "text" class = "form-textbox" id = "FirstName" / >

< / label > < table >

< /tr >

< b >

< td valign = "middle" class = "formtext" > * name, first name: < table >

< td valign = "middle" > < input name = "LastName" type = "text" class = "form-textbox" id = "LastName" / > < table >

< /tr >

< b >

< td valign = "middle" class = "formtext" > * Email: < table >

< td valign = "middle" > < input name = "" type = "text" class = "form-textbox" id = "FROM" / > < table >

< /tr >

< b >

< td valign = "middle" class = "formtext" > * phone: < table >

< td valign = "middle" > < input name = "" type = "text" class = "form-textbox" id = "Such" / > < table >

< /tr >

< b >

< td valign = "middle" class = "formtext" > < table >

< td valign = "middle" > < table >

< /tr >

< b >

< td valign = "middle" class = "formtext" > * Support required: < table >

< td valign = "middle" > < label >

< select name = "Support" class = "form drop-down' id = 'Support' >

< option selected = "selected" > please select... < / option >

< option value = "Connection issues" > connection problems < / option >

< option value = "Technical issues" > technical problems < / option >

< option value = "Failures of furniture" > furniture defects < / option >

< option value = "Other" > other < / option >

< / select >

< / label > < table >

< /tr >

< b >

< td valign = "middle" class = "formtext" > model of Chair: < table >

< td valign = "middle" > < input name = "Model" type = "text" class = "form-textbox" id = "Template" / > < table >

< /tr >

< b >

< td valign = "middle" class = "formtext" > * please describe your problem: < table >

< td valign = "middle" > < textarea name = "Comments" rows = "5" class = "text box form" id = 'Comments' > < / textarea > < table >

< /tr >

< b >

< td valign = "middle" class = "maintext" > < table >

< td valign = "middle" class = "maintext" > < table >

< /tr >

< b >

< td valign = "middle" > < table >

< td valign = "middle" > < label >

< input name = "Submit" type = 'submit' class = "form-submit-button" value = "Submit" / >

< / label > < table >

< /tr >

< /table >

< / make >

$subject = "support of. $_POST ['FROM'];

Tags: Dreamweaver

Similar Questions

  • Cannot add the header HTML - CFWebstore on CF11

    Hello

    I get the error below on a new installation of CFWebstore v6.6 on CF11. I used a previous version of CFWebstore on CF7 and CF9 without problem. Looking for suggestions...

    Cannot add the HTML header. ColdFusion is unable to add the header specified in the output stream. It's probably because you used to define one of the ColdFusion Cookies of Session or authentication cookie. To do this, please use configuration at the application server level. The error occurred on line 213.

    Thanks in advance for any help!

    Gary

    I found this answer:

    To resolve this issue, connect to Coldfusion Admin, go to the memory Variables and uncheck "Disable the update from Coldfusion cookies using tags/functions of Coldfusion." Memorize your settings, and then restart your Web site.

  • JDeveloper 12.2.1.0.0 do not add the header of web service security

    Hello

    I write simple WebService Java Client to a simple wsdl.

    If I click with the right button on the WSDL file and say 'Test Web Service', a request was made for me by Jdeveloper, all I have to do is click the box include the username and password for SOAP Header-> Header WS:Security and under the "security-> UserNameToken" and my request now has a security header

    " < = xmlns:env env:Envelope ' http://www.w3.org/2003/05/soap-envelope "xmlns:ns1 =" " http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd "xmlns:ns2 =" " http://Oracle.apps.CTB.cdapersistence.types ">

    < env:Header >

    < ns1:Security >

    < ns1:UsernameToken >

    WebLogic < ns1:Username > < / ns1:Username >

    password < ns1:Password > < / ns1:Password >

    < / ns1:UsernameToken >

    < / ns1:Security >

    < / env:Header >

    < env:Body >

    < ns2:PersistCDADocumentRequest >

    < ns2:Document / >

    < / ns2:PersistCDADocumentRequest >

    < / env:Body >

    < / env:Envelope >

    I tried 3 separate ways to do it in my Java Web Service Proxy and all 3 have failed, the demand created by my java code does not include the security header and don't include that the < env:Header / > why are my bottom 3 attempts of creation of the grave security header down when they are means documented to supply security headers? Help, please

    Method 1:

    Map < String, Object > requestContext = (cDAPersistenceServicePortType) .getRequestContext ((BindingProvider));

    requestContext.put (BindingProvider.USERNAME_PROPERTY, "weblogic");

    requestContext.put (BindingProvider.PASSWORD_PROPERTY, "password");

    Methos 2:

    Map < String, Object > requestContext = (cDAPersistenceServicePortType) .getRequestContext ((BindingProvider));

    Map < String, List < String > > headers = new HashMap < String, List < String > > ();

    headers.put ("Username", Collections.singletonList ("weblogic"));

    headers.put ("Password", Collections.singletonList ("password"));

    requestContext.put (MessageContext.HTTP_REQUEST_HEADERS, headers);

    Methos 3:

    @Generated ("oracle JDeveloper")

    public static void setPortCredentialProviderList (map < String, Object > requestContext) bird Exception {}

    TODO - provides the required identification information values

    String username = "weblogic";

    String password = "password";

    credList.add (getUNTCredentialProvider (username, password));


    requestContext.put (WSSecurityContext.TRUST_MANAGER, new TrustManager() {}

    {public boolean certificateCallback (X509Certificate [] string, int validateErr)

    Boolean result =

    (string! = null & & chain.length > 0) & & (chain [0] (serverCert) .equals | chain [0] .equals (clientCert));

    return the result;

    Returns true;

    }

    });

    credList.add (getSAMLTrustCredentialProvider ());

    requestContext.put (WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credList);

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getUNTCredentialProvider (String username, String password) {}

    new return ClientUNTCredentialProvider (username.getBytes (), password.getBytes ());

    }

    @Generated ("oracle JDeveloper")

    public static CredentialProvider getSAMLTrustCredentialProvider() {}

    return new SAMLTrustCredentialProvider();

    }

    found an answer here - http://stackoverflow.com/questions/5976940/how-to-add-soap-header-in-java

  • Capacity to add the header.  There, any help would be really appreciated!

    I've lost the ability to add some headers and footers.  I can still edit, add text, etc.  Error harm come to retrieve the content of the page.  Downloaded Acrobat 2015 and recreated the document with it and still the same problem.  Help!

    I think I found the problem.  It was just the documents that have been scanned that were the problem.

    Thank you for your reply,

    Linda

  • Add the header/footer to reports

    Hello

    I have a model of brand with a header and a footer in word. I would like the many reports OBIEE to use this model, can anyone suggest the best way to implement the model for applications?

    Thank you

    Hello

    After the addition of header/Fooder just edit header/Fooder has (or click the print option and then insert image)
    @{fmap:oracle_logo.png}

    You can also try adding xml from the file itself and then restart presentation bi services and then test it.

    Thank you
    Deva

  • Incorrect parameter when you try to add the header/footer?

    When you try to number pages in Acrobat 7 Standard (via the option headers and footers) I get the error 'invalid parameter', and the numbering does not work. Please notify.

    You said that your operating system is Windows 8.1.

    Acrobat 7.x product family (which went in the "end of Support" for years and years) is not compatible with Windows 8.1 (or any other modern OS).

    Windows 8.1, the first update for Acrobat XI provide Acrobat XI - Windows 8 / 8.1 compatibility.

    As Acrobat DC is what is currently marketed it is what you need to purchase.

    Note that there is no 'upgrade' from Acrobat 7.x to "XI" or "DC".

    Adobe Document Cloud | Adobe Acrobat DC

    Be well...

  • Add the header of each subsequent page outside the table

    I'm working on a report and when a new page is needed for the VP he is grouped on, it does not print their name on the top of the next page. It is not part of the table that is a nested group. How I'd get their name to repeat at the top of each page?

    Group by VPNAME VPNAME line
    Incumbents name holders temporary replacement Long term replacement job title preparation risk of turnover
    G INCUMBENTTITLE G INCUMBENTNAME F E.SEQNUM) TEMPNAME A.SEQNUM) LONGTERMNAME LONGTERMTITLE A.ZHR_READINESS RETENTIONRISK E

    E

    E


    line breakend page by VPNAME

    drpp you're model with xml to my profile ID.

    Ideally, you should have
    and not the xsl code.

  • If View | Headers is set on Normal but forwarding emails always send the header information, what it takes then try to stop him?

    When I send any email it adds the header at the top of the email to transmit information. According to other posts so I put in view. Headers | Normal, that they will not be added. It does not work for me. I tried setting to view | Headers | All and then return to normal. No change. Using Thunderbird version 38.3.0 on Windows 10. I can select and remove the information from the header manually, but it's a pain. The only other option is to send as an attachment that does not add the header information, but prefer not to use this method. Any suggestions? Thank you.

    It's 5 lines. I have a lot of people who want to be part of the sent emails, but complain about the shipping info. The 5 lines personally doesn't bother me. I miss understood believe the news of transfer, 5 lines may be hidden if notice | Headers was set to Normal. I have to select and remove before the transfer or copying some individuals simply not in on emails transferred. Thanks for your help Zenos.

  • Add the soap header for the data to the web service control

    Hello

    I use jdeveloper 11.1.2.4, I have to call soap webservice jet data control, what I I create the control of data using WSDL, but when run the SOAP header does not appear in call xml, so I create java code extends SOAPProvider and supplier of the set to the data control to the custom class as below:

    public class CustomSOAProvider extends SOAPProvider {
        public CustomSOAProvider() {
            super();
        }
    
    
        public void handleRequest(SOAPMessage soapMessage) {
            super.handleRequest(soapMessage);
        }
    
        public void handleResponse(SOAPMessage soapMessage) throws AdapterException {
            super.handleResponse(soapMessage);
        }
    }
    

    I need to add the header shot

       <soap:Header xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
          <wsse:Security soap:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
             <wsse:UsernameToken wsu:Id="UsernameToken-XXXX" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                <wsse:Username>XXXX</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">XXXX</wsse:Password>
             </wsse:UsernameToken>
          </wsse:Security>
       </soap:Header>
    

    Any suggestion

    Hani,

    Please check out the blog of Frank will give you the details on the handling of the https://blogs.oracle.com/jdevotnharvest/entry/how_to_access_the_ws_soap_message_using_ws_dc SOAP header

    K

  • Add the date/time of sending of the e-mail form

    Is it possible to add the date and time, a form is sent in the e-mail subject or body when the sender clicks a button to send email? So what I want to do, is when they click the send e-mail button, the subject could say 'Submit form' 16/02/15 at 09:27.

    Research further and was able to reach my goal with a bit of JavaScript.

  • Add the same header and footer to all of my reports

    Hello

    I wonder if someone could help me please.

    I have to add the header and footer even at 52 reports and I wonder if there is a way to do so I don't have to repeat the same things each time
    I use reports 10g

    may thanks in advance
    Ana

    Perhaps Chapter 16 "customization of reports with XML" in "Report Services of Oracle® Application Server, publishing reports on the Web, 10 g Release 2 (10.1.2), B14048-02"can help you."
    Walter

  • How to add the version and encoding in XML format

    Hello

    I generate an XML using code such as
    SELECT  XMLELEMENT(
                 "Document"
                ,XMLAttributes(
                     'urn:iso:std:iso:20022:tech:xsd:pain.001.002.99' AS "xmlns"
                    ,'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"
                    ,'urn:iso:std:iso:20022:tech:xsd:pain.001.002.99 pain.001.002.99.xsd' AS "xsi:schemaLocation"
                    )
            )
    FROM    dual;
    The result ist
    <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.002.99"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.002.99 pain.001.002.99.xsd">
    </Document>
    But I need
    <?xml version="1.0" encoding="UTF-8"?>
    <Document xmlns="urn:iso:std:iso:20022:tech:xsd:pain.001.002.99"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="urn:iso:std:iso:20022:tech:xsd:pain.001.002.99 pain.001.002.99.xsd">
    </Document>
    I can add the header in my selection?

    The XMLTYPE is inserted in a table and from there transferred via webutil to location of the customer.
    I have found that I can convert the XMLTYPE in a DOM document, and then use dbms_XMLDom.setCharset, but how do I convert to an XMLTYPE. The only way I've found is to convert it to a CLOB, then in an XMLTYPE.

    Concerning
    Marcus

    Oracle Database 11 g Enterprise Edition Release 11.2.0.2.0 - 64 bit Production

    >
    I was going to suggest XMLRoot but he does not understand the encoding
    >
    Why? :)

    SELECT XMLROOT(
           XMLELEMENT(
                 "Document"
                ,XMLAttributes(
                     'urn:iso:std:iso:20022:tech:xsd:pain.001.002.99' AS "xmlns"
                    ,'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"
                    ,'urn:iso:std:iso:20022:tech:xsd:pain.001.002.99 pain.001.002.99.xsd' AS "xsi:schemaLocation"
                    )
            )
            , version '1.0" encoding="UTF-8'
           )
    FROM    dual;
    

    Another way

    SELECT XMLTYPE
               (
                  '' ||
                  xmlElement("Foo",'Fii').getClobVal()
               )
    FROM DUAL
    
  • Form to check all the header checkbox

    Wow...

    My question is...

    I would like to add a checkbox "Check all" to the header of tabular form (not the default line selector). I tried a number of things, but can't make it work, as it adds the header:

    < input type = "checkbox" onclick = "$f_CheckAll (pThis)" >

    I prefer not to use external API or stuff like that. It should be simple and quick.

    Edited by: Voxie2 May 19, 2010 10:43

    Hello

    Try

    
    

    And make sure that you have not enabled for this sort column box

    BR, Jari

    Published by: jarola on May 19, 2010 12:38

  • How can I myself Live Mail, running Windows 7, to add the e-mail address of the sender of an e-mail to me in my address book? It has been so easy with Outlook Express 6 XP.

    Any transfer of old office (XP and Outlook Express 6) again laptop (Windows 7 and Live Mail). Were used to have a very easy installation for use in OE6 to add the e-mail address of the sender to the previous address book. Impossible to find something similar in Live Mail.

    It is in the message header Panel:

    If you are using the reading pane and that you do not see the Panel header, on the view tab, click reading pane and select show the message in the reading pane header.

  • Windows Mail. Cannot add the domain of the sender to the blocked sender list

    Mails are received without a good 'from' address.  They now have the shape of the House of garbage.  NOTES not real names.

    I inadvisedly signed up for something the House of garbage and other offers from partner sites.  House of garbage and partner sites all start sending me waste in large quantities.  They all had one thing in common - all spam emails came rubbishionmx.com.    I had managed to block this domain by adding it to the blocked senders list.

    Now I get these emails again in my Inbox.  Any attempt to add the domain to blocked senders list fails. Probably due to no dΘcodeur address.

    What should I do now?

    You are welcome. Are you speaking of the only rule address book? Depending on the type of legitimate mail you get, some like it and some do not.

    Start with the only rule of AddressBook and you receive a message that you want people not in your address book (E-mail from companies, bills, your ISP, etc), you can add them to the rule.

    Tools | Message rules | Mail | New.

    Box 1 - Where the From line contains people {check it out}

    Box 2 - Check: delete it & stop processing more rules if you want messages not in the address book to go to deleted items, or you can create a spam folder and direct them here.

    You can choose to delete the server, but be careful because you never have messages downloaded to any folder, if you choose this option.

    Box 3 - Click on the blue words contains people

    Click on the first address to select it. Scroll to the end and hold down the SHIFT key while you click the last address. This will highlight all. Right-click on it and click on from the menu that appears.

    Now, click Options and choose: Message * contains no of * the people below in the top of the page Options area, then choose: Message corresponds to one of the people below in the background Options box.

    OK your way out of the new rule.

    Now, only the addresses that you entered will be uploaded to your Inbox. You won't see other emails.

    Remember, if you add a person to your address book, you must add to the rule. It will not automatically be added.

Maybe you are looking for

  • Browser.newtab.PreLoad does not work

    Hello in the version of Firefox 24 notes, there is an object called changed: management performance improvements on the new tab Page. The link brings me to an object of function on Bugzilla telling me that the page tab preload Web pages. This preload

  • Error THotkey - FN keys do not work on Tecra

    THotkey couldn'terror code0 x 0031402, 0 x 00000002 This error code is displayed after every start (Tecra) NSF no longer work as it seems.How to?No one to ask - has not found any solution.I have the original CD.New installation or a partially only? T

  • DV6125 Power Switch failed

    For the past year, I had to press the switch further and further in the bezel at the top of the page in my DV6125 Pavilion notebook to turn on my computer.  It got to the point where I can no longer use my finger and have block a key or a coin on it

  • best way to split a flat sequence

    I have a long sequence, and I need to split to encompass almost exactly half in a while loop.  What is the best way to do it?  There are a large number of stream in and out of each frame, then reconnect everything would be messy and error prone.

  • ERROR 8007066F-IMPLEMENTATION UPDATE FAILED

    I also had problems with windows updates - to code8007066f.  has no update for microsoft office powerpoint 2007.  I have windows vista.  The recommended steps to follow are very boring and not easy for someone who is not computer savy.  What is a cri