Hey,
Plz tell me whats wrong in this code.
<?php // Print a greeting if the form was submitted
if ($_POST['user']) {
    print "Hello, ";
    // Print what was submitted in the form parameter called 'user'
    print $_POST['user'];
    print "!";
} else {
    // Otherwise, print the form
    print <<<_HTML_
<form method="post" action=""
Your Name: <input type="text" name="user">
<br/>
<input type="submit" value="Say Hello">
</form>
_HTML_;
}
?>

I get a blank white page, Im guessing there is something wrong in the else statement, Is this the right way to put HTML and PHP together in a print statement ???

Thanks.
__._,_.___


SPONSORED LINKS
Linux operating system Linux os Hosting linux unix web
Free linux operating system Linux migration Unix vs linux


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to