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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New Programmer Help With Sending XML

Status
Not open for further replies.

generalc

Programmer
Jun 28, 2008
1
I've been having problems with the sending of the XML. Perhaps much of these problems come because I am a newer programmer and I don't have much experience with XML. I am using php as the server script.

The only way I have had success encoding xml is with post encoding.

<form id='final' method='POST' action=' >
<input type='submit'>
</form>

This method will work fine to pass a small amount of XML. However, larger XML data size causethe url to be too long to send. The order will get sent but the xml will be truncated (to 250 characters). I've also tried this variation that eliminates the need of the xml to be in the url.

<form id='final' method='POST'
action=' >
<!-- The Url I'm sending to has no .php or .asp just
a folder-->
<input name='orders' type='field1'
value='somedata' />
<input name='profile' type='field2'
value='moredata'/>

<input value="submit" type='submit'>
</form>

But no data is passed. This seems like a really easy problem to solve if I could be pointed in the right direction.

Thanks in advance.
 
Some languages like php, don't receive the "get" (in the querystring) and the "post" data with the same functions or request variables.

Maybe that's your problem.
 
>action='[ignore][/ignore]'

The proper transcription for a genuine post action is this.
[tt]
<form id='final' method='POST' action='[ignore][/ignore]' >
[red]<!--[/red]
<input name='orders' type='field1' value='somedata' />
[red]-->[/red]
[blue]<input name='[red]field[/red]' value='somedata' />[/blue]
[red]<!--[/red]
<input name='profile' type='field2' value='moredata'/>
[red]-->[/red]
[blue]<input name='[red]field2[/red]' value='moredata'/>[/blue]
<input value="submit" type='submit'>
</form>
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top