mail( ) question
| From: | Fang Li | Date: | Mon, 29 Jan 2001 17:29:48 +0000 |
| Subject: | mail( ) question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-37101@lists.php.net to get a copy of this message | ||
Hi All:
Would anyone tell me how to correct the code in mail( ) function? Thanks a
lot.
<html>
<head>
<scrip language="JavaScrip">
function askEmailAddress( ){
var inputedData = prompt("The email address you want send to:"," ");
if(confirm("The email address you want send to is" + inputedData +
"?")){
alert("OK, the article will send to " + inputedData + "!");
}
}
</script>
</head>
<body>
.......
<?php
mail(?> <script language="JavaScript">
document.write(inputed_data)</script>
<?php , "My Subject", "Line 1\nLine 2\nLine 3"); ?>
</body>
</html>
Fang Li