| View previous topic :: View next topic |
| Author |
Message |
ripclaw
Joined: 10 Mar 2007 Posts: 4
|
Posted: Mar 10, 2007 12:13 am Post subject: XUpload not posting to new url using php |
|
|
Hi,
I'm trying to use php to upload a file as well as post user input from a single page. Without Xupload, the php page works fine, and posts the data to itself. However, with Xupload I figured that I have to create two seperate php files, one to accept user input, and the second to parse the user input. I integrated code from the upload_form.html into my first php file. I configured XUploadConfig.pm to url_post to my second php file. However, it doesn't seem to be working.
This is what I have in my first php file:
<form enctype="multipart/form-data" action="http://laashaikhlinux/cgi-bin/xupload/upload.cgi?upload_id=" method="POST" name="F1" onS
ubmit="return StartUpload();" target="upload">
The upload progress bar works fine, it's just the url_post doesn't work. Any suggestions? TIA! |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Mar 12, 2007 7:43 am Post subject: |
|
|
XUpload Free or Pro?
Are you sured there's no error happens inside upload.cgi after upload complete? Make 'upload' iframe visible(remove style=...) and see what's inside it. |
|
| Back to top |
|
 |
ripclaw
Joined: 10 Mar 2007 Posts: 4
|
Posted: Mar 12, 2007 7:06 pm Post subject: |
|
|
I don't see any errors. I see all the post information. It doesn't call the second.php file. It just reloads the original one with the post information. I pasted the output information below. I am using XUpload Free. Thanks.
Content-type: text/html
New Horizons Courses.txt
New Horizons Courses.txt
OK
Active Directory
524288
on
3
Submit/Save
uploads |
|
| Back to top |
|
 |
PilgrimX182

Joined: 22 Mar 2006 Posts: 2106 Location: UFO Lab
|
Posted: Mar 13, 2007 7:40 am Post subject: |
|
|
Hmm...do you have url_post hidden field in your HTML form?
PM me URL to your upload form if it's available. |
|
| Back to top |
|
 |
ripclaw
Joined: 10 Mar 2007 Posts: 4
|
Posted: Mar 13, 2007 10:40 pm Post subject: |
|
|
| Nevermind. I read your FAQ and it fixed my problem. Weird, I didn't notice it there before. The problem was the submit button had the name of submit. I renamed it to submit1 and it fixed it. Thanks again! |
|
| Back to top |
|
 |
|