Rieekan, thanks for the help! I got the following error:
Argument "Content-Disposition: attachment; filename="/var/www/cgi-..." isn't num
eric in subtraction (-) at play.pl line 7.
got same error even if I changed the file to:
#!/usr/bin/perl -w
use CGI qw(:standard);
my $q=new CGI...
Can anyone let me know why my download script won't work?
After a user clicks a download link, this script will run, but it does not work:
#!/usr/bin/perl -w
use CGI qw(:standard);
my $q=new CGI;
print $q->header(-type => "text",
-attachment =>...
Sorry, when I was editing this post, I accidently removed some '>', here is the correct logout.cgi
#!/usr/bin/perl -w
use CGI qw(:standard);
my $q=new CGI;
my $cookie = $q->cookie(-name =>"ggtUser", -expires=>'-1h');
print $q->redirect(-location=> "the url of the login page here"...
I'm building a database using mysql and perl. If a user provides correct login info, a cookie is set like this:
my $cookie = $q->cookie(-name =>"ggtUser", -value => $username);
print $q->redirect(-location=> "the url of the homepage here",
-cookie => $cookie);
Each pages in my...
A user uploads a file and click a button to go to the next page, and then click a button to come back to the file upload page. How can I keep the file name in the file upload box then?
I used filefield() in CGI,
print $query->filefield(-name=>'uploaded_file',
-default=>'starting value'...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.