Results 1 to 2 of 2

Thread: Email Riddler

  1. #1
    Join Date
    Nov 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Email Riddler

    1) Script Title: Email Riddler

    2) Script URL (on DD): http://www.dynamicdrive.com/emailriddler/

    3) Describe problem: I am trying to use email riddler in a form where I post an email with order info in it.

    <form name="formcheck" onSubmit="return formCheck(this);" form action="mailto:'+postemailxxx+'?subject=Web contact"; method="post">

    It will not post the mail properly and it tries to post to +postmailxxxx.

    Have I not got the javascript correct? Can anyone see what I have incorrect?

    Thanks a lot I appreciate any light on the matter.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Well, you can't just embed a JavaScript variable directly inside your HTML code. This is explained on the Email Riddler page. In your case, you could do something like:

    Code:
    <form id="formcheck" name="formcheck" onSubmit="return formCheck(this);" form action=""; method="post">
    "
    "
    </form>
    
    <script type="text/javascript">
    
    document.getElementById("formcheck").action="mailto:"+postemailxxx+"?subject=Web contact"
    
    </script>
    That should work.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •