Hi,
I'm an absolute new newbie in PHP!!
I'm trying to make a mailinglist form. The user has to enter a name and a email.
Problem 1: When the user presses send I get 2 email.
Problem 2: If I try to insert a new textarea in my form, and I insert the new corresponding PHP tags, the mail is not sent!
Can anyone tell me why??
This is the script, and sorry . . . it's in danish (hope it's understandable anyway):
<?php
if($POST['navn'] && $POST['email'])
{ mail("mymail@midomain.dk", "PC-Vandkøling mailinglist", $POST['navn'], $POST['email']);
}
?>
<form method="post" action="<? echo $_SERVER["PHP_SELF"];?>">
<table width="39%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="33%" height="30"><font face="Arial, Helvetica, sans-serif">Navn:</font>
</td>
<td width="67%" height="30"><input name="navn" type="text" size="30"></td>
</tr>
<tr>
<td height="30"><font face="Arial, Helvetica, sans-serif">E-mail:</font>
</td>
<td><input name="email" type="text" size="30"></td>
</tr>
<tr>
<td colspan="2"><div align="center"> </div>
<div align="center">
<input type="submit" name="s1" value="Send">
</div></td>
</tr>
</table>
</form>