ANSWERS: 2
  • It's sort of hard to tell with the way AB changes the formatting, but it looks like you are missing a semi-colon between "var i = A.B.value" and "function mail() ...". In other words, you need "var i = A.B.value;"
  • Except in rare circumstances, it's usually better to send mail from the server-side instead of relying on the client to have an email program set up. Additionally, textarea is not an input type; it's its own tag. It works like this: <textarea name="SomeName" rows="someInteger" cols="someInteger">Default Value</textarea> Next, you spell Javascript wrong in the action. Next, you should have the entire action be a Javascript call instead of injecting Javascript in the middle of it. Finally, there's no need to put a name attribute on the script element.

Copyright 2023, Wired Ivy, LLC

Answerbag | Terms of Service | Privacy Policy