Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

CGI is retarded

Name: Anonymous 2010-04-03 11:58

#!/usr/bin/perl

use strict;
use warnings;
use CGI qw/:standard/;

print   header,
        start_html( "What is this shit" ),
        start_form,
        hidden( -name => "parameter", -default => "this does not matter" ),
        end_form,
        end_html;


http://localhost/retard.cgi?parameter=fuckshit

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-US">
<head>
<title>What is this shit</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<form method="post" action="http://localhost/retard.cgi?parameter=fuckshit" enctype="multipart/form-data">
<input type="hidden" name="parameter" value="fuckshit"  /></form>
</body>
</html>

Name: Anonymous 2010-04-03 12:02

its still better then PHP

Name: Anonymous 2010-04-03 12:07

$q = new CGI;
print $q->header;
&ReadParse();

You should be happy that Perl is commonly used with it rather than complaining about it.

Name: Anonymous 2010-04-03 12:07

http://perldoc.perl.org/CGI.html#DELETING-A-PARAMETER-COMPLETELY%3A
It sometimes useful for resetting parameters that you don't want passed down between script invocations.

Name: Anonymous 2010-04-03 12:10

>>3
I'm not complaining (much), it was just an odd 'feature' that required >>4 as a workaround.

Name: Anonymous 2011-02-03 1:58

Don't change these.
Name: Email:
Entire Thread Thread List