Jump to content

javascript and email


Recommended Posts

On the old forum I was given a link to use javascript as a means of sending email. It works fine, but, after working on an updated site and following the advice to use HTML 4.01 Strict it doesn't validate. I am getting the error message that says end tag for element "FORM" which is not open, but it validated XHTML what is the solution?


I know I still have to use css with the table, this is a works in progress.


ww w.sans souci web design.com/NewHoly/contact_us.php


How do I find the old forums for reference?

Link to comment
Share on other sites

Try this...


    <br />    <!-- <br />    var Domain = "holytrinity-madeira.org";<br />    var Mailme = "mail" + "to:" + "churchwarden@" + Domain;<br />    document.write("<input type=\"submit\" value=\"Email Church Warden\" ");<br />    document.write("onclick=\"parent.location=Mailme\"> ");<br />    // --><br />    


I've just taken out the form tags entirely. Double check, but it seemed to validate for me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...