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>&nbsp;</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>";

.

You will find that by doing that as you have mentions, parts of it such as javascript will not be compatible with some email clients. So best thing to do is to just have a link to something like yoursite.com/email.php?userid=194965 and the user id will allow for existing details to be displayed on the page specifically for each user. Also doing what you have tried to do may also result in the email being marked as spam.