Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML XML and ASP 1

Status
Not open for further replies.

Remulon

Programmer
Apr 30, 2004
11
AU
I am trying to write the code for an HTML page (or should I say HTML form), that is to (upon submission) create an XML document and post that document to an asp page.

I have no control over the asp page, nor the server that it is on. (How much difference does this make?)

Basically I am trying to integrate my website with my dispatch warehouse and all I have from them is the format that the XML file is to be in (ie: element tags and order etc.), and the URL of the asp page.

I understand what XML is and what it is used for, and I have been reading lots of information about it, but I have seen no examples where any of this is explained.

Any help will be greatly appreciated.
 
Start by creating the HTML form.
The form is POSTed to an asp script.
This script
- creates an XML file
- moves the file (in some way) to the other server.

The steps the script has to take:
[ol]
[li]Validate the form[/li]
[li]Create a new file results.xml[/li]
[li]Write to the file, filling in the blanks[/li]
[li]Close the file handler[/li]
[li]Hand the file to the other server: e.g.
[ul][li]Copy the file via ftp to the server OR[/li]
[li]Open a HTTP connection to the other server's upload page, and POST your xml file along with any other required information OR[/li]
[li]Make the file available in a known location on your server for the other server to access/copy as it needs[/li][/ul][/li][/ol]

I'm not sure which of the methods for copying the file will be most suitable for you; it depends on how the data is used.

<marc> i wonder what will happen if i press this...[ul][li]please tell us if our suggestion has helped[/li][li]need some help? faq581-3339[/li][/ul]
 
that's great, Thanks manarth.

do you know anything about running asp on apache?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top