PDA

View Full Version : Solved: Trouble with HTML forms



Sissyfoo
11-21-2005, 07:32 PM
a.WriteLine "<html> <head> </head> <body> <div align = center>" _
& " <img src=""" & Piccie & """ " & " width = ""800"" height=""600"" align=""middle"" border=1>" _
& " <br><form name=""form1"" Action = ""mailto:nswtraining@afgonline.com.au?subject=Yes, I will be able to attend the" & Opt & "on the " & TrnDate & """" _
& " method = ""post"">" _
& " <input type =""submit"" value = ""Yes, I will be able to attend"">" _
& " </form> </div> </body> </html>"
a.Close

Grr! I can't figure out what I am doing wrong here. When I write this text file to the msg.HTMLbody it works fine apart from the form button which refuses to display. When I view the e-mail source code it shows as :



<form>
</form>

<input type=submit value="Yes, I will be able to attend">

</div>

</body>

</html>


When I try writing to msg.Body instead the layout is fine.

<html>
<head> </head>
<body> <div align = center> <img src="image" width = "800" height="600" align="middle" border=1>
<br>
<form name="form1" Action = "mailto:nswtraining@afgonline.com.au?subject=Yes, I will be able to attend the Accreditation Training on the " method = "post"> <input type ="submit" value = "Yes, I will be able to attend">
</form>
</div>
</body>
</html>


What's going wrong here? :help