UnitedForums - UK Web Hosting Forum UnitedHosting Community Hosting Forums
Network and Server StatusCustomer SupportUK Web Hosting
UnitedHostingUnitedHosting Sitemap UK Hosting ForumUK Web HostingWeb Hosting ForumsUK Reseller HostingWeb Host CommunityUK Managed Dedicated ServersHosting Help and SupportUK Domain Name Registration

Go Back   UnitedForums.co.uk > UnitedHosting Community > Website Development & Scripting

Reply
 
Thread Tools Rate Thread Display Modes
Old 24th December 2007, 11:50 AM   #1 (permalink)
iraklis
HPAAAAAAA
 
Join Date: Jan 2007
Location: Thessaloniki, Greece
Posts: 22
Handling the xml response of a form

I`m traying to make an upload script to blip.tv

so i`ve set up a form

<form enctype="multipart/form-data" action="http://blip.tv/file/post/" method="POST">
<input type="hidden" name="post" value="1" />
Name : <input name="title" value="test name" />
<input type="hidden" name="categories_id" value="-1" />
<input type="hidden" name="userlogin" value="uname" />
<input type="hidden" name="password" value="upass" />
<input type="hidden" name="skin" value="xmlhttprequest" />


Send this file: <input name="file" type="file" />
<input type="submit" value="Send File" />
</form>

which works fine, the file is uploaded and the browser displays the Upload page

The thing is that i don`t want to be redirected there so i added an iframe and sent there the response. So far so good.

The response is in XML , in this form
Quote:
<otterresponses>
<response>
Your file called Foobar has been successfully posted.
<post_url>
hxxp://blip.tv/file/32471
</post_url>
</response>
</otterresponses>
I have absolutely no idea how to handle this. I`m confused a little by the fact that it is a response of a form. I know how to parse a simple xml file but in this case it seems to be a little different story.

Any help ?


And merry Christmas everyone
iraklis is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT. The time now is 06:07 PM.

UK Web Hosting  |  UK Reseller Hosting  |  UK Dedicated Servers UnitedHosting  |  UnitedSupport  |  UnitedForums  |  SEO by vBSEO 3.0.0
Copyright © 1998-2008 United Communications Limited. All Rights Reserved. Registered in England and Wales 3651923 - VAT Reg No. 737662309