Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Emailing form data as xml
Old 12-14-2009, 05:35 PM Emailing form data as xml
Experienced Talker

Posts: 37
Name: Sean
Trades: 0
I understand how to email my form data using php. But I'm stumped when it comes to converting my form data to xml and than emailing it.

Can anyone help or direct me to a example.
sbova_99 is offline
Reply With Quote
View Public Profile Visit sbova_99's homepage!
 
 
Register now for full access!
Old 12-14-2009, 05:37 PM Re: Emailing form data as xml
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
It really depends on the data you are trying to send
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-14-2009, 05:47 PM Re: Emailing form data as xml
Experienced Talker

Posts: 37
Name: Sean
Trades: 0
My bad, I should have been more specific. Its just a standard "contact us" form. So name, address, phone, comments...
sbova_99 is offline
Reply With Quote
View Public Profile Visit sbova_99's homepage!
 
Old 12-14-2009, 05:52 PM Re: Emailing form data as xml
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
<contact>
<name>Name goes here</name>
<email>email address</email>
<address>
<![CDATA[
Adress details
Town
country etc
]]>
</address>
</contact>
add more nodes as required
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-14-2009, 06:03 PM Re: Emailing form data as xml
Experienced Talker

Posts: 37
Name: Sean
Trades: 0
I think I need to be even more specific. My ultimate goal is to have a customer enter there information in my contact form and have php automatically convert the data into xml and than have that xml sent to me via email.

Is this possible?
sbova_99 is offline
Reply With Quote
View Public Profile Visit sbova_99's homepage!
 
Old 12-14-2009, 06:07 PM Re: Emailing form data as xml
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
So is your problem one of:

Not knowing how to retrieve the data from the form?

Not knowing how to construct an xml file from the data?

How to send an email with an attachment?

Or are you hoping for someone to write the whole thing?
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-14-2009, 06:14 PM Re: Emailing form data as xml
Experienced Talker

Posts: 37
Name: Sean
Trades: 0
I just don't know how make php convert my form data to xml using php.

I would never ask someone to write all the code for me.

Last edited by sbova_99; 12-14-2009 at 06:17 PM..
sbova_99 is offline
Reply With Quote
View Public Profile Visit sbova_99's homepage!
 
Old 12-14-2009, 06:42 PM Re: Emailing form data as xml
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,384
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
http://www.developerfusion.com/code/...ate-xml-files/
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-14-2009, 07:05 PM Re: Emailing form data as xml
Experienced Talker

Posts: 37
Name: Sean
Trades: 0
Thank you!
sbova_99 is offline
Reply With Quote
View Public Profile Visit sbova_99's homepage!
 
Old 12-20-2009, 02:42 AM Re: Emailing form data as xml
freezea's Avatar
Experienced Talker

Posts: 45
Trades: 0
Hi.
In my opinion, you can refer to the url below:
http://www.xmlfiles.com/articles/mic...ml/default.asp
Regards,
freezea.
__________________

Please login or register to view this content. Registration is FREE
: Web-based Excel-like Java reporting tool.
freezea is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Emailing form data as xml
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29659 seconds with 12 queries