Perl and CGI

 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me



Go Back   Tutorialized ForumsWeb Design & DevelopmentPerl and CGI

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
  #1  
Old August 20th, 2007, 06:36 AM
edison edison is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Aug 2007
Posts: 1 edison User rank is Just a Lowly Private (1 - 20 Reputation Level) 
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

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentPerl and CGI > How to redirect(dynamically) upload cgi processing form


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap