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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to