
August 20th, 2007, 05:36 AM
|
|
Registered User
|
|
Join Date: Aug 2007
Posts: 1
Time spent in forums: 6 m 40 sec
Reputation Power: 0
|
|
|
How to redirect(dynamically) upload cgi processing form
Hi,
I am desparately in need of some help here.
First of all CGI/Perl are greek to me. I am only familiar with PHP.
I have this Form with a File Field. Passing to a CGI file(upload.cgi?id=20) to process for File upload. I have to use CGI/Perl as it is uploading large file size. This cgi file is the psupload file. Its free from the internet.
The "id" variable in the URL is dynamic and will changes according to member who upload it.
Inside the "upload.cgi" file there is a variable set to redirect the file upon upload success.
$redirect = "URL-to-redirect";
Somewhere further below the file there is a script to trigger the redirection :
if($redirect){
# redirect user
print qq~Location: $redirect\n\n~;
}
My question is, how can I set the $redirect url to redirect to for instant...
redirect-URL-with-variable?id=20
The "id" variable should be the one passed to the cgi file and it is dynamic.
**Since I am a new user, I am not permitted to post anything with a URL in it.
Hope to find a solution here.
Thanks
|