Programming Languages C# Subjective
Mar 15, 2013

I want users send data by formmail but when they send nothing or call it from web site they will see error.
codes in PHP like this:
if (isset($HTTP_POST_VARS)){
..........
}
else{
echo ("error lalalalal")
}
How it will look in perl?

Detailed Explanation

In php it will be like
if (isset($HTTP_POST_VARS)){
....
}
In perl
if ($ENV{'REQUEST_METHOD'} eq 'POST'){
.....
}

Discussion (0)

No comments yet. Be the first to share your thoughts!

Share Your Thoughts
Feedback