Re: [PHP] Can PHP Build XML Pages?

This is a discussion on Re: [PHP] Can PHP Build XML Pages? within the PHP General forums, part of the PHP Programming Forums category; On Jul 14, 2003, "Jeffrey Fitzgerald" claimed that: | | Looking for direction PHP and XML. I have a need ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-14-2003
Jeff Harris
 
Posts: n/a
Default Re: [PHP] Can PHP Build XML Pages?

On Jul 14, 2003, "Jeffrey Fitzgerald" claimed that:

|
| Looking for direction PHP and XML. I have a need to build a simple
|XML doc from a PHP set of form vars. Any tips or examples are greatly
|appreciated.
|

You mean something like
<?php
header("Content-Type: text/xml");
print ("<?xml version=\"1.0\" ?>\n");
print ("<shows>\n");
print (" <listing id=\"{$_POST['formdate']}\">\n");
print (" <venue>{$_POST['venuename']}>\n </venue>");
print (" </listing>\n");
print ("</shows>\n");
?>

Lay out your xml document first, then plug in the form variables. Make
sure you use that header() command, too.

Jeff Harris

-- Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9CF9 46C2 B089 0FED
Responses to this message should conform to RFC 1855.



Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:59 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0