http://search.cpan.org/~lds/CGI.pm-3.05/CGI.pm#SETTING_THE_VALUE(S)_OF_A_NAMED_PARAMETER:
$query->param('fooparam','foovalue');
OR
$query->param(-name=>'fooparam',-value=>'foovalue');
$q->param( table => "vendors" ); # INCORRECT
$q->param(-name=>'table',value=>'vendors'); # CORR
wow, that's some serious regex just to remove a leading character from a string.
anyway, this is not a CGI issue per se. see if this helps:
http://ppewww.ph.gla.ac.uk/%7eflavell/www/formquestion.html
>>-Original Message-
>>From: Shawn Smith [mailto:[EMAIL PROTECTED]
>>Sent: Friday, June 0
Do you mean you just don't want the actual file uploaded...just the name
of it? You can probably accomplish this by having the file form field
in a separate form (that is not submitted). Then use javascript to
populate the field in the form that actually does get submitted.
-Original Message
The original intent was to generate a save-as dialog box instead of
displaying the PDF inline? I believe the problem with this is that it
can cause blank browser windows to open, which some people don't like.
This is a browser issue and I'm not aware of an alternative. Removing
the content-disposit
You can read all the query param names into an array using the param
method of cgi.cpm. Then you just loop through the array.
See:
http://search.cpan.org/~lds/CGI.pm-3.29/CGI.pm#FETCHING_THE_NAMES_OF_ALL
_THE_PARAMETERS_PASSED_TO_YOUR_SCRIPT:
@params = $query->param
foreach my $param ( @params )
If you want to use the function oriented interface for CGI, you need to
import the functions:
See:
http://search.cpan.org/~lds/CGI.pm-3.33/CGI.pm#PROGRAMMING_STYLE
example:
http://search.cpan.org/~lds/CGI.pm-3.33/CGI.pm#A_COMPLETE_EXAMPLE_OF_A_S
IMPLE_FORM-BASED_SCRIPT
>>-Original Message-
If you're serious about security, you have some work to do;-) This application
is very likely vulnerable to SQL injection and XSS injection.
1) for all CGI scripts, turn on taint and strict mode, and then sanitize your
input. There are many ways to sanitize your input, but you might start with
>>Hi,
>>
>>I've got some old code to deal with and I have hit a problem.
>>
>>If there is a request for a page that has mixed content EG: 'text/html'
>>and 'image/jpeg', the image media is not being displayed correctly under
>>the FireFox browser.
>>
>>The way things currently work is that media ot
ageid=123456&size=800x600
the HTTP response headers would probably shed the most light on the problem,
nudge, nudge;-)
>>-Original Message-
>>From: Gunnar Hjalmarsson [mailto:nore...@gunnar.cc]
>>Sent: Thursday, July 02, 2009 1:24 PM
>>To: beginners-cgi@perl
Ah, mod-perl{{{ shudder }}}.
"$asperl->setContentType($apache->content_type());"
I think there's a bunch of relevant code we're not seeing. Without having been
set prior, I don't believe $apache->content_type will return the right header
in this situation because it relies on file extensio
10 matches
Mail list logo