Jump to content

BeckyKing

Members
  • Content Count

    25
  • Joined

  • Last visited

Community Reputation

0 Neutral

About BeckyKing

  • Rank
    Newbie
  1. Hi, I have the attached the files that I am using but when the form is filled out nothing comes through to any email addresses? Can anyone give any advice as to why? Thank you in advance. Regards, Becky index.php contact-form-submission.php
  2. i HAVE NOW MANAGED TO FIXED THE ISSUE. THANK YOU VERY MUCH FOR YOUR HELP!!!!
  3. I ahve changed thye code so the headers only have one rn after it but still throws the Warning: mail(): Multiple or malformed newlines found in additional_header in /home/westover/public_html/contact-form-submission.php on line 267 but only one error this time. The "headers already sent" message shows up because the mail error message is considered output, and there cannot be output before you send headers ​What is my mail error message? Line 247? I have tried to put this at the end of the code but still gives an error? Thank you for your help.
  4. Hi, I have created a form and up until Friday it was working correctly but now get the error: Warning: mail(): Multiple or malformed newlines found in additional_header in /home/westover/public_html/contact-form-submission.php on line 267 Warning: mail(): Multiple or malformed newlines found in additional_header in /home/westover/public_html/contact-form-submission.php on line 267Warning: mail(): Multiple or malformed newlines found in additional_header in /home/westover/public_html/contact-form-submission.php on line 267Warning: mail(): Multiple or malformed newlines found in addit
  5. If I add radio buttons to my form will that go on to the XML attachment the same as the other fields or is it different?
  6. New it would be something simple. great thank you so much for all your help :-)
  7. I have used $xmlroot->appendChild($xmlindividual); and tried $xmlroot->appendChild($xmlfirstname); But keep getting and error 'Fatal error: Call to a member function appendChild() on a non-object in /websites/123reg/LinuxPackage22/ki/ng/_c/king-creations.co.uk/public_html/beckyking/contact-form-submission.php on line 23' Code: <?php /* Create XML Document */ $xmlDoc = new DOMDocument('1.0'); /* Build Maximizer XML file */ $xmlRoot = $xmlDoc->createElement('AllData'); $xmlDoc->appendChild($xmlRoot); $xmlIndividual = $xmlDoc->createElement('Individual'); $firstna
  8. how do I append the node to the root node?
  9. Is there anything else I can try?
  10. It has the same as my attachment which is: <?xml version="1.0"?> <AllData/>
  11. I know its probably simple but I keep getting errors when I try to print out the variable $content? What is the best code to use and where abouts do I put it?
  12. I have moved the code to where you said but my XML is still not being generated. Do i need to write anything in the XML document or write the XML code in the PHP? <?php /* Create XML Document */ $xmlDoc = new DOMDocument('1.0'); /* Build Maximizer XML file */ $xmlRoot = $xmlDoc->createElement('AllData'); $xmlDoc->appendChild($xmlRoot); $xmlIndividual = $xmlDoc->createElement('Individual'); $contact_name = $_POST["contact_name"]; $contact_email = $_POST["contact_email"]; $contact_phone = $_POST["contact_phone"]; $contact_message = $_POST["contact_message"]; $
  13. I have moved the code to the top but it still will not create the data for the XML document?
  14. This didn't seem to work? <?php /* Create XML Document */ $xmlDoc = new DOMDocument('1.0'); /* Build Maximizer XML file */ $xmlRoot = $xmlDoc->createElement('AllData'); $xmlDoc->appendChild($xmlRoot); $xmlIndividual = $xmlDoc->createElement('Individual'); $xmlname = $xmlDoc->createElement('contact_name', $name); $xmlIndividual->appendChild($xmlname); $name = $_POST["contact_name"]; $xmlemail_address = $xmlDoc->createElement('contact_email', $email_address); $xmlIndividual->appendChild($xmlemail_address); $email_address = $_POST["contact_email"]; $xmlph
  15. Can you give me an example please?
×
×
  • Create New...