Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 07-17-2012, 03:56 PM   PM User | #1
kandil
New Coder

 
Join Date: Jul 2012
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
kandil is an unknown quantity at this point
Question Mail form Code Please !

hello , I have XML file that has this code

</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>

and I'd like to make this form send email to my inbox

Can anyone help ?

Thanks
kandil is offline   Reply With Quote
Old 07-17-2012, 03:58 PM   PM User | #2
kandil
New Coder

 
Join Date: Jul 2012
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
kandil is an unknown quantity at this point
Provider

The provider told me that i can use send.php File , but I don't know How?
kandil is offline   Reply With Quote
Old 07-17-2012, 08:24 PM   PM User | #3
Alex Vincent
Moderator


 
Join Date: May 2002
Location: Hayward, CA
Posts: 1,427
Thanks: 1
Thanked 19 Times in 17 Posts
Alex Vincent is on a distinguished road
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
Alex Vincent is offline   Reply With Quote
Users who have thanked Alex Vincent for this post:
kandil (07-18-2012)
Old 07-18-2012, 04:31 AM   PM User | #4
kandil
New Coder

 
Join Date: Jul 2012
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
kandil is an unknown quantity at this point
Smile I hope to get a solution

Yes please , and thanks for your reply
kandil is offline   Reply With Quote
Old 07-18-2012, 04:38 AM   PM User | #5
kandil
New Coder

 
Join Date: Jul 2012
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
kandil is an unknown quantity at this point
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
kandil is offline   Reply With Quote
Old 07-18-2012, 03:21 PM   PM User | #6
Alex Vincent
Moderator


 
Join Date: May 2002
Location: Hayward, CA
Posts: 1,427
Thanks: 1
Thanked 19 Times in 17 Posts
Alex Vincent is on a distinguished road
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
Alex Vincent is offline   Reply With Quote
Old 07-19-2012, 07:02 AM   PM User | #7
kandil
New Coder

 
Join Date: Jul 2012
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
kandil is an unknown quantity at this point
I hope to visit this Template at my site www.arabic-calligraphy.com

ًWhen I press Submit , it sends nothing
kandil is offline   Reply With Quote
Old 07-20-2012, 09:34 AM   PM User | #8
kandil
New Coder

 
Join Date: Jul 2012
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
kandil is an unknown quantity at this point
Waiting your reply !

I am still waiting your next reply


Quote:
Originally Posted by Alex Vincent View Post
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?

Last edited by kandil; 07-20-2012 at 09:38 AM..
kandil is offline   Reply With Quote
Old 07-20-2012, 04:37 PM   PM User | #9
Alex Vincent
Moderator


 
Join Date: May 2002
Location: Hayward, CA
Posts: 1,427
Thanks: 1
Thanked 19 Times in 17 Posts
Alex Vincent is on a distinguished road
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
Alex Vincent is offline   Reply With Quote
Reply

Bookmarks

Tags
xml

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:42 AM.


Advertisement
Log in to turn off these ads.