I have the following code that i wish to know how is done in ASP.
can someone please advise the best method to do the same as in my php script.
thank you in advance for your help
can someone please advise the best method to do the same as in my php script.
thank you in advance for your help
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?
$from_private_sys_email="noreply@noreply.com";
$email_headers = "Content-Type: text/html; charset=ISO-8859-1\r\nFrom: ".$from_private_sys_email."\r\n";
if ($_POST['Submit'] <> "Submit") {
mail("test@test.com","subject","message","$emailheaders");
} else {
?>
<form action="" method="post"><input name="name" type="text"><input name="Submit" type="submit" value="Submit"></form>
<?
}
?>
</body>
</html>
Comment