PHP Script Help Sending Message?

TheFiscster510

New member
So I am trying to make a php script that will have to boxes and a button and they put a user name in one box and a password in the other then it mails it to me. this is what i got so far but im not really a php scripto so could someone please help me. thanks.

CODE SO FAR:
<head>

<title>Submit Form</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css">
<!--
body,td,th {
color: #666666;
}
body {
background-color: #333333;
}
-->
</style></head>

<body>
<?php

$to = "[email protected]";
$subject = "New Applicant";
$body = $_POST ["textfield" . "textfield2"];
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}


?>

<p><font color="#FFFFFF">REGISTER FOR NEW APPLICATION USE: </font></p>
<form name="form1" method="post" action="">
<label>Username:
<input type="text" name="textfield">
</label>
<p>
<label>Password:
<input type="text" name="textfield2">
</label>
</p>
<p>
<label>**************************************
<input type="submit" name="Submit" value="Submit">
</label>
</p>
</form>
<p>*</p>
</body>
</html>
And this is just cause i want user to submit a username and password to me so i can add them to an applyication i am making nothing more. thanks.
 
Back
Top