i've recently acquired a copy of Programming PHP, 3rd edtion, and on page 10 i saw an "echo" that brought me doubt.
<html>
<head>
<title>Personalized Greeting Form</title>
</head>
<body>
<?php if (!empty($_POST['name'])) {
echo "Greetings, {$_POST['name']}, and welcome.";
} ?>
<form action="<? echo php $_SERVER['PHP_SELF']; ?>" method="post">
Enter your name: <input type="text" name="name" />
<input type="submit" />
</form>
</body>
is the "echo" on the form tag necesssary? i've tried without it and it seems to work perfectly but i'm not sure if it's really important to keep that "echo" there...
if someone knows this, i'd appreciate!
thanks guys!