- Impact
- 7
hey guys I have kinda taken a break from coding for about 2-3 months so i was wonderin' how you make multiple if statements...I have an example of a code I am working on it's very very simple I will show you.
I want the password to be "IFED" as well.
-CP
Oh and http://www.genera3d.com/Learn.php <there's the place to see what it does so far
PHP:
<html>
<form action="Learn.php" method="POST">
Username:
<br>
<input type="text" name="te" value="Username Here">
<br>
Password:
<br>
<input type="password" name="pwd" value="">
<br>
<input type="submit" name="sub" value="SUBMIT">
</form>
<?php
if ($_POST["te"]=="Username Here")
echo 'You must enter a name';
else
echo $_POST["te"];
?>
-CP
Oh and http://www.genera3d.com/Learn.php <there's the place to see what it does so far







