PHP Basics In Pictures
Basics
Variables
Numbers
User functions
Logic & Loops
Files
Employ conditional logic
If statements
Create a Web page with this code:
<html>
<head>
<title>If Statements</title>
</head>
<body>
<h2>Acme Logon Page</h2>
<form method="post" action="http://www.yourwebsite.com/phpscripts/if.php">
<h2>Enter Password:</h2>
Password: <input type="password" name="password"><p>
<input type="submit" value="Submit">
</form>
</body>
</html>
Save the page as
if.html
in the
PHPSCRIPTS
folder.
Upload it to the home directory in your Web site.
<< BACK
NEXT >>