For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > October 2005 > multiple action on a form submit









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author multiple action on a form submit
anparasu

2005-10-18, 12:34 am

Following statements i had used to redirect to next-URL

#### Now, redirect if "next-url" is included
if ($FORM{'next-url'}) {
print "Location: $FORM{'next-url'}\n";
print "\n";
exit;
}

1.) Is there any way i could use "Content-Disposition:attachment;" for file downloading ?

2.) Whether i could use the following statements to start download the exe and then redirecting to next-url.

print "Content- Disposition:attachment;filename=download
.exe";

#### Now, redirect if "next-url" is included
if ($FORM{'next-url'}) {
print "Location: $FORM{'next-url'}\n";
print "\n";
exit;
}
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com