Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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

  • #2
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Provider

    The provider told me that i can use send.php File , but I don't know How?

  • #3
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    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:

    kandil (07-18-2012)

  • #4
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile I hope to get a solution

    Yes please , and thanks for your reply

  • #5
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts
    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 04:13 PM. Reason: adding code tags

  • #6
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    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

  • #7
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I hope to visit this Template at my site www.arabic-calligraphy.com

    ًWhen I press Submit , it sends nothing

  • #8
    New Coder
    Join Date
    Jul 2012
    Posts
    13
    Thanks
    1
    Thanked 0 Times in 0 Posts

    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 10:38 AM.

  • #9
    Moderator
    Join Date
    May 2002
    Location
    Hayward, CA
    Posts
    1,461
    Thanks
    1
    Thanked 23 Times in 21 Posts
    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


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •