Writing form.database output to xml

Thread Solved

Join Date: Feb 2008
Posts: 39
Reputation: mr_scooby is an unknown quantity at this point 
Solved Threads: 0
mr_scooby mr_scooby is offline Offline
Light Poster

Writing form.database output to xml

 
0
  #1
Nov 1st, 2009
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
  1. paymentDetails(); // displays bank details contains 3 lines txt
  2. contactUs(); // displays our address contains 4 lines txt

and then some comes from variables/post
  1. $name = $_POST['name'];
  2. $email = $_POST['email'];
  3. $number = $_POST['number'];
  4. $bAddress = $_POST['billingAddress'];
  5. $sAddress = $_POST['shippingAddress'];

and then the items ordered and the cost/total cost from a sql database
  1. 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
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 39
Reputation: mr_scooby is an unknown quantity at this point 
Solved Threads: 0
mr_scooby mr_scooby is offline Offline
Light Poster
 
0
  #2
Nov 2nd, 2009
Have found out a way to do the user input and the static site data, just going to start work on the sql database data.

All working, trial and error is mint.
Last edited by mr_scooby; Nov 2nd, 2009 at 5:41 am.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 193 | Replies: 1
Thread Tools Search this Thread



Tag cloud for PHP
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC