I'm thinking this might be a PHP question rather than a XML question. Would you like me to move this thread to the PHP forum?
This isn't really a form, by the way... it's just a snippet of (not-well-formed) XML markup. Where's the rest of the XML?
__________________
"The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
June 30, 2001
author, Verbosio prototype XML Editor
author, JavaScript Developer's Dictionary https://alexvincent.us/blog
Users who have thanked Alex Vincent for this post:
This is all code of the XML file , When I press submit nothing goes to my inbox
Code:
<?xml version="1.0" encoding="utf-8"?>
<root>
<page id="coming_soon">
<backgrounds visible="true">
<bg_color>0x090909</bg_color>
</backgrounds>
<texts>
<title visible="true"><![CDATA[OUR WEBSITE IS UNDER CONSTRUCTION]]></title>
<txt visible="true"><![CDATA[Now we are working on the new style so we will be back in:]]></txt>
<follow><![CDATA[Follow Us:]]></follow>
<contact><![CDATA[a_kndl@yahoo.com]]></contact>
<text_days><![CDATA[DAYS]]></text_days>
<text_hours><![CDATA[HOURS]]></text_hours>
<text_min><![CDATA[MIN]]></text_min>
<text_sec><![CDATA[SEC]]></text_sec>
</texts>
<logo>
<logo visible="true">http://www.arabic-calligraphy.com/</logo>
<link_logo>http://www.arabic-calligraphy.com/</link_logo>
<target_logo>_self</target_logo>
</logo>
<settings>
<year>2012</year>
<month>011</month>
<day>1</day>
<newsletter_visible>true</newsletter_visible>
</settings>
<social_icons visible="true">
<icon1>
<image_icon>images/ico1.png</image_icon>
<link_twitter>https://twitter.com/kandil2000/</link_twitter>
<target_twitter>_blank</target_twitter>
</icon1>
<icon2>
<image_icon>images/ico2.png</image_icon>
<link_rss>http://eg.linkedin.com/pub/ahmed-kandil/1a/871/805/</link_rss>
<target_rss>_blank</target_rss>
</icon2>
<icon3>
<image_icon>images/ico3.png</image_icon>
<link_facebook>https://www.facebook.com/pages/Arabic-Calligraphy/204575069556939/</link_facebook>
<target_facebook>_blank</target_facebook>
</icon3>
</social_icons>
<pages>
<about_button visible="true"><![CDATA[ABOUT]]></about_button>
<about_title><![CDATA[ABOUT]]></about_title>
<about_text><![CDATA[<font size="14" color="#C3C3C3" letterspacing="1">Arabic Calligraphy is a world leader in Arabic Calligraphy- providing customers with Skilled, high resolution, relevant and enjoyable images , that can be used in making pendants, frames and plates, mugs , and Tshirts.
You can use it in your Website logo , Facbook time line logo , Twitter background design ,books cover ,lables ,stickers , your business cards and letterhead .
We Provide Logo design , Translation , Web design Services as well !
Our team of skilled graphic designers and calligrapher is capable of understanding the need of our clients and designing artworks the way they want it.</font>]]></about_text>
<contact_button visible="true"><![CDATA[CONTACT]]></contact_button>
<contact_title><![CDATA[CONTACT]]></contact_title>
<contact_text><![CDATA[If you have any questions, comments or suggestions please use the form below.]]></contact_text>
<contact_fill1><![CDATA[Name]]></contact_fill1>
<contact_fill2><![CDATA[Email]]></contact_fill2>
<contact_fill3><![CDATA[Message]]></contact_fill3>
<contact_send><![CDATA[SUBMIT]]></contact_send>
<contact_clear><![CDATA[CLEAR]]></contact_clear>
<contact_error><![CDATA[Wrong email]]></contact_error>
<contact_success><![CDATA[Thank you!]]></contact_success>
</pages>
</page>
</root>
Last edited by Alex Vincent; 07-18-2012 at 03:13 PM..
Reason: adding code tags
Wait... you're loading this page directly into the browser? If so, tell me how the browser's supposed to know that contact_send is a form submission, and contact_fill1 is not... and for that matter, where it's sending the form to, what HTTP mime-type it's sending it as (application/x-www-form-urlencoded or application/multipart-form-data), what fields it's actually sending, etc.
Then tell the computer. Keep in mind XML is a language format where the tag names have no meaning whatsoever. The computer needs something to indicate what it's supposed to do. It literally doesn't know it's supposed to do anything with that data.
This might've been what your friend meant by send.php: that might be a script to take your XML input and transform it into (X)HTML which has all this niceness in it. I have no way of knowing, since I can't see send.php.
If you're having this XML markup load directly into the browser, without something to transform it (or even style it), then something is missing. Or is this XML being loaded another way which we can't see yet?
__________________
"The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
June 30, 2001
author, Verbosio prototype XML Editor
author, JavaScript Developer's Dictionary https://alexvincent.us/blog
Wait... you're loading this page directly into the browser? If so, tell me how the browser's supposed to know that contact_send is a form submission, and contact_fill1 is not... and for that matter, where it's sending the form to, what HTTP mime-type it's sending it as (application/x-www-form-urlencoded or application/multipart-form-data), what fields it's actually sending, etc.
Then tell the computer. Keep in mind XML is a language format where the tag names have no meaning whatsoever. The computer needs something to indicate what it's supposed to do. It literally doesn't know it's supposed to do anything with that data.
This might've been what your friend meant by send.php: that might be a script to take your XML input and transform it into (X)HTML which has all this niceness in it. I have no way of knowing, since I can't see send.php.
If you're having this XML markup load directly into the browser, without something to transform it (or even style it), then something is missing. Or is this XML being loaded another way which we can't see yet?
I'm afraid I'm out of ideas. Someone else may have to step in.
__________________
"The first step to confirming there is a bug in someone else's work is confirming there are no bugs in your own."
June 30, 2001
author, Verbosio prototype XML Editor
author, JavaScript Developer's Dictionary https://alexvincent.us/blog