| | |
Writing form.database output to xml
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Feb 2008
Posts: 39
Reputation:
Solved Threads: 0
hi guys, I would like to be able to take all the output of a order form and the database output of the selected items and return it to a xml document.
I tried the
file_get_contents and that just took the actual code from the php page.
My website is all php pages and the checkout page displays the final purchase details, eg title, volume and cost and the user details eg, name, number and address.
some output comes from a function
and then some comes from variables/post
and then the items ordered and the cost/total cost from a sql database
I just want to be able to write everything that is displayed on screen once the order is confirmed to a xml document.
I'm assuming that its fwrite() or something similar, just can't find anything that captures it.
cheers
I tried the
file_get_contents and that just took the actual code from the php page.
My website is all php pages and the checkout page displays the final purchase details, eg title, volume and cost and the user details eg, name, number and address.
some output comes from a function
PHP Syntax (Toggle Plain Text)
paymentDetails(); // displays bank details contains 3 lines txt contactUs(); // displays our address contains 4 lines txt
and then some comes from variables/post
PHP Syntax (Toggle Plain Text)
$name = $_POST['name']; $email = $_POST['email']; $number = $_POST['number']; $bAddress = $_POST['billingAddress']; $sAddress = $_POST['shippingAddress'];
and then the items ordered and the cost/total cost from a sql database
PHP Syntax (Toggle Plain Text)
showCostsCheckout();
I just want to be able to write everything that is displayed on screen once the order is confirmed to a xml document.
I'm assuming that its fwrite() or something similar, just can't find anything that captures it.
cheers
![]() |
Other Threads in the PHP Forum
- Previous Thread: Help any advice about building binary tree for dynamic organizational chart???
- Next Thread: Run PHP program
Views: 192 | Replies: 1
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube





