|
Another newbie question.
ok, so i am trying to follow this stupid tutorial on the web until I get to the bookstore, and it really is'nt helping much. I was hoping somebody could tell me what I am doing wrong here. Here is my html then my PHP. Also any suggestions for a good book on php/mysql?
----------------------------------------------------------------------
html
----------------------------------------------------------------------
<html>
<head>
<title>welcome test</title>
<body>
<FORM ACTION="welcome.php" METHOD=POST>First Name: <INPUT TYPE=TEXT NAME="name"><INPUT TYPE=SUBMIT VALUE="GO"></FORM>
</body>
</html>
----------------------------------------------------------------------
php
----------------------------------------------------------------------
<html>
<head>
<title>Welcome test php doc</title>
</head>
<body>
<?php
if ( $name == "o" ) {
echo( "Welcome, mister O!" );
} else {
echo( "Welcome, $name!" );}
?>
</body>
</html>
|