in reply to Syntax errors with {s
You're not closing your first and your second IF, that's where the problems occur. So all I did was added a closed bracket after the first and second ELSE. Please see the script below.
if (param()) { my $name = param("name"); my $email = param("email"); my $phone = param("phone"); my $url = param("url"); my $requests = param("requests"); if ($name ne "") { if ($email ne "") { if ($requests ne "") { print "very good!"; } else { print "please leave a message"; } } else { print "please enter your email"; } } else { print "please enter your name"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Syntax errors with {s
by ikegami (Patriarch) on Oct 10, 2004 at 18:47 UTC | |
by sulfericacid (Deacon) on Oct 10, 2004 at 19:19 UTC |