Leser: 3
8 Einträge, 1 Seite |
1 2 3 4 5 6 7 8 9
#!/usr/bin/perl use CGI; use CGI qw(:standard); use CGI::Carp qw(fatalsToBrowser); print "Content-type: text/html\n\n"; $query = CGI->new(); $option = $query->param("option"); print $option;
Gast+2008-10-13 20:13:22--Wie kann ich das lösen ?
1 2
use URI::Escape qw/ uri_escape /; my $option = uri_escape("Hallo; wie geht's?");
nepos+2008-10-14 08:26:40--Dann sag der anderen Seite, dass sie gefälligst HTTP lernen sollen!
QuotePragmas
...
...
-newstyle_urls
Separate the name=value pairs in CGI parameter query strings with semicolons rather than ampersands. For example:
?name=fred;age=24;favorite_color=3
Semicolon-delimited query strings are always accepted, but will not be emitted by self_url() and query_string() unless the -newstyle_urls pragma is specified.
This became the default in version 2.64.
-oldstyle_urls
Separate the name=value pairs in CGI parameter query strings with ampersands rather than semicolons. This is no longer the default.
use CGI qw(-oldstyle_urls);
8 Einträge, 1 Seite |