3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <? $formname = $HTTP_POST_VARS[formname]; $feedback=""; // Check for formfields that are required. if ( $HTTP_POST_VARS[email] == "" ) { $feedback .= "<br>Missing Email"; }; if ( $HTTP_POST_VARS[realname] == "" ) { $feedback .= "<br>Missing Name"; }; if ( $HTTP_POST_VARS[game01] == "" ) { $feedback .= "<br>Missing game01"; }; if ( $HTTP_POST_VARS[game02] == "" ) { $feedback .= "<br>Missing game02"; }; if ( $HTTP_POST_VARS[game03] == "" ) { $feedback .= "<br>Missing game03"; }; if ( $HTTP_POST_VARS[game04] == "" ) { $feedback .= "<br>Missing game04"; }; if ( $HTTP_POST_VARS[game05] == "" ) { $feedback .= "<br>Missing game05"; }; if ( $HTTP_POST_VARS[game06] == "" ) { $feedback .= "<br>Missing game06"; }; if ( $HTTP_POST_VARS[game07] == "" ) { $feedback .= "<br>Missing game07"; }; if ( $HTTP_POST_VARS[game08] == "" ) { $feedback .= "<br>Missing game08"; }; if ( $HTTP_POST_VARS[game09] == "" ) { $feedback .= "<br>Missing game09"; }; if ( $HTTP_POST_VARS[game10] == "" ) { $feedback .= "<br>Missing game10"; }; if ( $HTTP_POST_VARS[game11] == "" ) { $feedback .= "<br>Missing game11"; }; if ( $HTTP_POST_VARS[game12] == "" ) { $feedback .= "<br>Missing game12"; }; if ( $HTTP_POST_VARS[game13] == "" ) { $feedback .= "<br>Missing game13"; }; if ( $HTTP_POST_VARS[game14] == "" ) { $feedback .= "<br>Missing game14"; }; if ( $HTTP_POST_VARS[game15] == "" ) { $feedback .= "<br>Missing game15"; }; if ( $HTTP_POST_VARS[game16] == "" ) { $feedback .= "<br>Missing game16"; }; if ( $HTTP_POST_VARS[game01cv] == "" ) { $feedback .= "<br>Missing game01cv"; }; if ( $HTTP_POST_VARS[game02cv] == "" ) { $feedback .= "<br>Missing game02cv"; }; if ( $HTTP_POST_VARS[game03cv] == "" ) { $feedback .= "<br>Missing game03cv"; }; if ( $HTTP_POST_VARS[game04cv] == "" ) { $feedback .= "<br>Missing game04cv"; }; if ( $HTTP_POST_VARS[game05cv] == "" ) { $feedback .= "<br>Missing game05cv"; }; if ( $HTTP_POST_VARS[game06cv] == "" ) { $feedback .= "<br>Missing game06cv"; }; if ( $HTTP_POST_VARS[game07cv] == "" ) { $feedback .= "<br>Missing game07cv"; }; if ( $HTTP_POST_VARS[game08cv] == "" ) { $feedback .= "<br>Missing game08cv"; }; if ( $HTTP_POST_VARS[game09cv] == "" ) { $feedback .= "<br>Missing game09cv"; }; if ( $HTTP_POST_VARS[game10cv] == "" ) { $feedback .= "<br>Missing game10cv"; }; if ( $HTTP_POST_VARS[game11cv] == "" ) { $feedback .= "<br>Missing game11cv"; }; if ( $HTTP_POST_VARS[game12cv] == "" ) { $feedback .= "<br>Missing game12cv"; }; if ( $HTTP_POST_VARS[game13cv] == "" ) { $feedback .= "<br>Missing game13cv"; }; if ( $HTTP_POST_VARS[game14cv] == "" ) { $feedback .= "<br>Missing game14cv"; }; if ( $HTTP_POST_VARS[game15cv] == "" ) { $feedback .= "<br>Missing game15cv"; }; if ( $HTTP_POST_VARS[game16cv] == "" ) { $feedback .= "<br>Missing game16cv"; }; if ( $HTTP_POST_VARS[mnftotal] == "" ) { $feedback .= "<br>Missing mnftotal"; }; // Setup message body for each of the form if ( $formname == "picks" ) { $mybody =" Your WEEK 1 picks have been received. Here's what you submitted: $HTTP_POST_VARS[realname] ------------------------------ $HTTP_POST_VARS[game01cv] - $HTTP_POST_VARS[game01] $HTTP_POST_VARS[game02cv] - $HTTP_POST_VARS[game02] $HTTP_POST_VARS[game03cv] - $HTTP_POST_VARS[game03] $HTTP_POST_VARS[game04cv] - $HTTP_POST_VARS[game04] $HTTP_POST_VARS[game05cv] - $HTTP_POST_VARS[game05] $HTTP_POST_VARS[game06cv] - $HTTP_POST_VARS[game06] $HTTP_POST_VARS[game07cv] - $HTTP_POST_VARS[game07] $HTTP_POST_VARS[game08cv] - $HTTP_POST_VARS[game08] $HTTP_POST_VARS[game09cv] - $HTTP_POST_VARS[game09] $HTTP_POST_VARS[game10cv] - $HTTP_POST_VARS[game10] $HTTP_POST_VARS[game11cv] - $HTTP_POST_VARS[game11] $HTTP_POST_VARS[game12cv] - $HTTP_POST_VARS[game12] $HTTP_POST_VARS[game13cv] - $HTTP_POST_VARS[game13] $HTTP_POST_VARS[game14cv] - $HTTP_POST_VARS[game14] $HTTP_POST_VARS[game15cv] - $HTTP_POST_VARS[game15] $HTTP_POST_VARS[game16cv] - $HTTP_POST_VARS[game16] Monday Night Tie-Breaker: $HTTP_POST_VARS[mnftotal] GOOD LUCK! ~Dead Pool 2015 "; } if ( $feedback == "" ) { # # send an email to the respondent # $sendto =$HTTP_POST_VARS[email]; $mysubj ="WEEK 01 Picks"; $myheader= "From: DP Confirmation <confirmation@DeadPoolBoy.com>\r\n"; mail("$sendto", "$mysubj", "$mybody","$myheader"); # # send an email to me # $sendto =$HTTP_POST_VARS[recipient]; $mysubj ="WEEK 01 Picks"; $myheader ="From: $HTTP_POST_VARS[realname] <$HTTP_POST_VARS[email]>\r\n"; $mybody ="$HTTP_POST_VARS[realname] $HTTP_POST_VARS[game01] $HTTP_POST_VARS[game01cv] $HTTP_POST_VARS[game02] $HTTP_POST_VARS[game02cv] $HTTP_POST_VARS[game03] $HTTP_POST_VARS[game03cv] $HTTP_POST_VARS[game04] $HTTP_POST_VARS[game04cv] $HTTP_POST_VARS[game05] $HTTP_POST_VARS[game05cv] $HTTP_POST_VARS[game06] $HTTP_POST_VARS[game06cv] $HTTP_POST_VARS[game07] $HTTP_POST_VARS[game07cv] $HTTP_POST_VARS[game08] $HTTP_POST_VARS[game08cv] $HTTP_POST_VARS[game09] $HTTP_POST_VARS[game09cv] $HTTP_POST_VARS[game10] $HTTP_POST_VARS[game10cv] $HTTP_POST_VARS[game11] $HTTP_POST_VARS[game11cv] $HTTP_POST_VARS[game12] $HTTP_POST_VARS[game12cv] $HTTP_POST_VARS[game13] $HTTP_POST_VARS[game13cv] $HTTP_POST_VARS[game14] $HTTP_POST_VARS[game14cv] $HTTP_POST_VARS[game15] $HTTP_POST_VARS[game15cv] $HTTP_POST_VARS[game16] $HTTP_POST_VARS[game16cv] MNFtotal $HTTP_POST_VARS[mnftotal] "; mail("$sendto", "$mysubj", "$mybody","$myheader"); include "thankyou.htm"; } else { include "formerr.htm"; } //phpinfo(); ?>
Output for 7.2.0
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> Warning: Use of undefined constant formname - assumed 'formname' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 4 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 4 Warning: Use of undefined constant email - assumed 'email' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 9 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 9 Warning: Use of undefined constant realname - assumed 'realname' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 10 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 10 Warning: Use of undefined constant game01 - assumed 'game01' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 11 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 11 Warning: Use of undefined constant game02 - assumed 'game02' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 12 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 12 Warning: Use of undefined constant game03 - assumed 'game03' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 13 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 13 Warning: Use of undefined constant game04 - assumed 'game04' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 14 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 14 Warning: Use of undefined constant game05 - assumed 'game05' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 15 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 15 Warning: Use of undefined constant game06 - assumed 'game06' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 16 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 16 Warning: Use of undefined constant game07 - assumed 'game07' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 17 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 17 Warning: Use of undefined constant game08 - assumed 'game08' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 18 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 18 Warning: Use of undefined constant game09 - assumed 'game09' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 19 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 19 Warning: Use of undefined constant game10 - assumed 'game10' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 20 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 20 Warning: Use of undefined constant game11 - assumed 'game11' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 21 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 21 Warning: Use of undefined constant game12 - assumed 'game12' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 22 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 22 Warning: Use of undefined constant game13 - assumed 'game13' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 23 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 23 Warning: Use of undefined constant game14 - assumed 'game14' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 24 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 24 Warning: Use of undefined constant game15 - assumed 'game15' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 25 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 25 Warning: Use of undefined constant game16 - assumed 'game16' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 26 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 26 Warning: Use of undefined constant game01cv - assumed 'game01cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 27 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 27 Warning: Use of undefined constant game02cv - assumed 'game02cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 28 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 28 Warning: Use of undefined constant game03cv - assumed 'game03cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 29 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 29 Warning: Use of undefined constant game04cv - assumed 'game04cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 30 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 30 Warning: Use of undefined constant game05cv - assumed 'game05cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 31 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 31 Warning: Use of undefined constant game06cv - assumed 'game06cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 32 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 32 Warning: Use of undefined constant game07cv - assumed 'game07cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 33 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 33 Warning: Use of undefined constant game08cv - assumed 'game08cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 34 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 34 Warning: Use of undefined constant game09cv - assumed 'game09cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 35 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 35 Warning: Use of undefined constant game10cv - assumed 'game10cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 36 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 36 Warning: Use of undefined constant game11cv - assumed 'game11cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 37 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 37 Warning: Use of undefined constant game12cv - assumed 'game12cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 38 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 38 Warning: Use of undefined constant game13cv - assumed 'game13cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 39 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 39 Warning: Use of undefined constant game14cv - assumed 'game14cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 40 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 40 Warning: Use of undefined constant game15cv - assumed 'game15cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 41 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 41 Warning: Use of undefined constant game16cv - assumed 'game16cv' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 42 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 42 Warning: Use of undefined constant mnftotal - assumed 'mnftotal' (this will throw an Error in a future version of PHP) in /in/KlVh2 on line 43 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 43 Warning: include(formerr.htm): failed to open stream: No such file or directory in /in/KlVh2 on line 124 Warning: include(): Failed opening 'formerr.htm' for inclusion (include_path='.:') in /in/KlVh2 on line 124
Output for 5.4.0 - 7.1.10
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> Notice: Use of undefined constant formname - assumed 'formname' in /in/KlVh2 on line 4 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 4 Notice: Use of undefined constant email - assumed 'email' in /in/KlVh2 on line 9 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 9 Notice: Use of undefined constant realname - assumed 'realname' in /in/KlVh2 on line 10 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 10 Notice: Use of undefined constant game01 - assumed 'game01' in /in/KlVh2 on line 11 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 11 Notice: Use of undefined constant game02 - assumed 'game02' in /in/KlVh2 on line 12 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 12 Notice: Use of undefined constant game03 - assumed 'game03' in /in/KlVh2 on line 13 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 13 Notice: Use of undefined constant game04 - assumed 'game04' in /in/KlVh2 on line 14 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 14 Notice: Use of undefined constant game05 - assumed 'game05' in /in/KlVh2 on line 15 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 15 Notice: Use of undefined constant game06 - assumed 'game06' in /in/KlVh2 on line 16 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 16 Notice: Use of undefined constant game07 - assumed 'game07' in /in/KlVh2 on line 17 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 17 Notice: Use of undefined constant game08 - assumed 'game08' in /in/KlVh2 on line 18 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 18 Notice: Use of undefined constant game09 - assumed 'game09' in /in/KlVh2 on line 19 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 19 Notice: Use of undefined constant game10 - assumed 'game10' in /in/KlVh2 on line 20 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 20 Notice: Use of undefined constant game11 - assumed 'game11' in /in/KlVh2 on line 21 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 21 Notice: Use of undefined constant game12 - assumed 'game12' in /in/KlVh2 on line 22 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 22 Notice: Use of undefined constant game13 - assumed 'game13' in /in/KlVh2 on line 23 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 23 Notice: Use of undefined constant game14 - assumed 'game14' in /in/KlVh2 on line 24 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 24 Notice: Use of undefined constant game15 - assumed 'game15' in /in/KlVh2 on line 25 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 25 Notice: Use of undefined constant game16 - assumed 'game16' in /in/KlVh2 on line 26 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 26 Notice: Use of undefined constant game01cv - assumed 'game01cv' in /in/KlVh2 on line 27 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 27 Notice: Use of undefined constant game02cv - assumed 'game02cv' in /in/KlVh2 on line 28 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 28 Notice: Use of undefined constant game03cv - assumed 'game03cv' in /in/KlVh2 on line 29 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 29 Notice: Use of undefined constant game04cv - assumed 'game04cv' in /in/KlVh2 on line 30 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 30 Notice: Use of undefined constant game05cv - assumed 'game05cv' in /in/KlVh2 on line 31 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 31 Notice: Use of undefined constant game06cv - assumed 'game06cv' in /in/KlVh2 on line 32 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 32 Notice: Use of undefined constant game07cv - assumed 'game07cv' in /in/KlVh2 on line 33 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 33 Notice: Use of undefined constant game08cv - assumed 'game08cv' in /in/KlVh2 on line 34 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 34 Notice: Use of undefined constant game09cv - assumed 'game09cv' in /in/KlVh2 on line 35 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 35 Notice: Use of undefined constant game10cv - assumed 'game10cv' in /in/KlVh2 on line 36 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 36 Notice: Use of undefined constant game11cv - assumed 'game11cv' in /in/KlVh2 on line 37 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 37 Notice: Use of undefined constant game12cv - assumed 'game12cv' in /in/KlVh2 on line 38 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 38 Notice: Use of undefined constant game13cv - assumed 'game13cv' in /in/KlVh2 on line 39 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 39 Notice: Use of undefined constant game14cv - assumed 'game14cv' in /in/KlVh2 on line 40 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 40 Notice: Use of undefined constant game15cv - assumed 'game15cv' in /in/KlVh2 on line 41 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 41 Notice: Use of undefined constant game16cv - assumed 'game16cv' in /in/KlVh2 on line 42 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 42 Notice: Use of undefined constant mnftotal - assumed 'mnftotal' in /in/KlVh2 on line 43 Notice: Undefined variable: HTTP_POST_VARS in /in/KlVh2 on line 43 Warning: include(formerr.htm): failed to open stream: No such file or directory in /in/KlVh2 on line 124 Warning: include(): Failed opening 'formerr.htm' for inclusion (include_path='.:') in /in/KlVh2 on line 124