What's wrong witth this?
by The WiZaRd · in Technical Issues · 02/10/2001 (7:35 pm) · 1 replies
What's wrong with this perl script? (first one)
#!/user/local/bin/perl
print "Content-type:text/html\n\n";
$name= $formdata{'name'};
$age= $formdata{'age'};
$state= $formdata{'state'};
$mystate= "ohio";
if ($state eq $mystate) {
print "Hello $name . When did you turn $age ? I live in $mystate too!\n";
}
else {
print "Hello $name . When did you turn $age . I don't live in $state . I live in $mystate .;
}
#!/user/local/bin/perl
print "Content-type:text/html\n\n";
$name= $formdata{'name'};
$age= $formdata{'age'};
$state= $formdata{'state'};
$mystate= "ohio";
if ($state eq $mystate) {
print "Hello $name . When did you turn $age ? I live in $mystate too!\n";
}
else {
print "Hello $name . When did you turn $age . I don't live in $state . I live in $mystate .;
}
Robert Brim
else {
print "Hello $name . When did you turn $age . I don't live in $state . I live in $mystate .;
}
<
forgot the ending quotes. change to:
else
{
print "Hello $name . When did you turn $age ? I don't live in $state . I live in $mystate .\n";
}