hi
can some one help me with printing diffrent txt depending on what the user get's for value!!
you can see that i suck in if statment sow i just make a gues what the prin code coulde look like!
can some give me a code exampel or show me!!
i have my code here .. see the print section
<div id="mainArea">
<div class="boxMainHeader">Get your lost password</div>
<div class="boxMain"><br> here i want to print diffrent stuff!!
<?php
$username = $_POST['username'];
include ("../management/mysqlcondbrr.php");
if (!isset($_POST[username])) // they haven't filled out the form yet.
{
?>
<html>
<body><br>
<form action="<?=$PHP_SELF?>" method="post" name="getpass">
<b>Your username:</b>
<br>
<input class="inputSidebar" type="text" name="username" value="" <br>        
<input class="button" type="submit" name="submit" value="Get password">
</form>
</body>
</html>
<?php
}else{
$mysqlcon1 = "SELECT * FROM reg_info WHERE username='".$_POST[username]."'";
$result1 = mysql_query($mysqlcon1) or die("Error: " . mysql_error());
if (mysql_num_rows($result1) == '1') {
while ($row = mysql_fetch_array($result1)) {
print "yes";
$message = "Your password is ".$row['password']."";
$email = $row['email'];
$mail = mail($email, "Your Password", $message,"From: [email]administrator@flameline.com[/email]\r\n");
if ($mail) {
echo "mail sent";
}
}
}else{
print "no";
}
}
?>
</div>
</body>
</html>