hello,
i want to do a new task. but it is new to me. any body help plz...
i want to send registration form through email to users. then user fill that registration form. i wrote javascript in mail body but in that javascript not working. below is my 'mail body'
//this subject will be visible only for you
$sub = "".$name." invites you to www.murali.com";
$msg = "<html><head>
<script>
function valide()
{
if(document.formz.username.value=='')
{
alert('enter username');
document.formz.username.focus();
return false;
}
if(document.formz.password.value=='')
{
alert('enter password');
document.formz.password.focus();
return false;
}
else
{
window.document.formz.action='http://localhost/murali/';
}
}
</script>
</head>
<body>
<table width='100%' border='0' cellspacing='0' cellpadding='0'>
<tr>
<td height='8'></td>
</tr>
<tr>
<td style='font-family:Verdana; font-size:12px; font-weight:normal; color:#000000' align='left'>
<br>
<p>".$transl2." </p><br>
<form name='formz' action='' method='post' onsubmit='return valide();'>
<table align='center'>
<tr>
<td>username</td>
<td><input type='text' name='username'></td>
</tr>
<tr>
<td>password</td>
<td><input type='password' name='password'></td>
</tr>
<tr>
<td> </td>
<td><input type='submit' name='submit' value='submit' ></td>
</tr>
</table>
</form>
</td>
</tr>
<tr>
<td height='8'></td>
</tr>
<tr>
<td height='8'></td>
</tr>
<tr>
<td height='8'></td>
</tr>
<tr>
<td align='left' style='font-family:Verdana; font-size:12px; font-weight:bold; color:#47493F'>Regards,<br>
murali.
</td>
</tr>
<tr>
<td height='8'></td>
</tr>
<tr>
<td height='8'></td>
</tr>
<tr>
<td height='4'></td>
</tr>
</table></body>
</html>";
.