It almost works… when you enter your name and submit it says hello and the number one instead of the first name…
[code]
Hi UserHi User
[php]<?php
if (filter_has_var(INPUT_POST, “userName”) && filter_has_var(INPUT_POST, “bName”)){
// the form exists, so work with it
$userName = filter_input(INPUT_POST, “userName”) && $bName = filter_input(INPUT_POST, “bName”);
print “
Hi there, $userName $bName
\n”;} else {
//there’s no input. Create the form
print <<< HERE
} // end ‘value exists’ if
?>[/php]
[/code]