Warning: Undefined variable: action in
Posted: Sun May 25, 2003 2:11 am
Need some help with this tryed a few things and cant get it fixed maybe someone can help me with this heres the code error is on line 4 Warning: Undefined variable: action in D:\Webserver\www.everything.32k.org\topsite\sendpass.php on line 4
here it is there it is please helpppppppppp
here it is
Code: Select all
<?php
include("design.php");
design_topp();
IF($action == "") {
print $langї'forgot_pass'];
?>
<br>
<form name="form1" method="post" action="sendpass.php?action=send">
<input type="text" name="email">
<input type="submit" name="Submit" value="<?=$langї'recive_pass']?>">
</form>
<?php
}
elseif($action == "send") {
$sql = "SELECT * FROM sites WHERE mail = '$email'";
$res = mysql_query($sql);
IF(mysql_num_rows($res) > 0) {
$out = mysql_fetch_array($res);
mail($outї'mail'], $confї'title'], $langї'your_pass'] . " "" . $outї'pass'] . ""\n\n" . $confї'title'], "From: " . $confї'mail']);
print $langї'pass_sent']; }
elseIF(mysql_num_rows($res) < 1) { print $langї'no_mail']; }
}
design_bunn();
?>