Okay, I am learning perl/cgi and I wanted to write a simple script that checked if you typed in HELLO or not. If you did it would print HELLO on the screen and if you didn't it should print WRONG.
Here is the code for my form on the page:
<form action="cgi-bin\Equality.cgi" method="POST" name="GOOF">
<input type="text" length="20" name="title">
<input type="submit" value="Hmmm?">
</form>
And here is the code for my .cgi file:
#!/usr/local/bin/perl
my $Inner;
$Inner=<STDIN>;
$Inner =~ s/%(..)/pack("c",hex($1))/ge;
if($Inner=="HELLO"){
print"HELLO";
}else{
print"WRONG";
}
BTW, this is on my computer that is why the slashes are \ instead of /. Anyway when I submit my information it asks me if I want to download the file and wont run the script.
PLZ, WHAT IS WRONG!?!?!?!?!

Here is the code for my form on the page:
<form action="cgi-bin\Equality.cgi" method="POST" name="GOOF">
<input type="text" length="20" name="title">
<input type="submit" value="Hmmm?">
</form>
And here is the code for my .cgi file:
#!/usr/local/bin/perl
my $Inner;
$Inner=<STDIN>;
$Inner =~ s/%(..)/pack("c",hex($1))/ge;
if($Inner=="HELLO"){
print"HELLO";
}else{
print"WRONG";
}
BTW, this is on my computer that is why the slashes are \ instead of /. Anyway when I submit my information it asks me if I want to download the file and wont run the script.
PLZ, WHAT IS WRONG!?!?!?!?!