|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
<body>
<form name="StatusReport" action="mailto:reswaran@cisco.com?subject=test&bcc=ssivasha@cisco.com&body=document.StatusReport.elements[0].value"> <textarea name="comments" rows=10 columns=15 wrap="physical"> </textarea> <input type="submit" value="Send Mail"> </form> Moreover... Whatcan I do if I need to sedn the content of two text area in a single mail.Please clarify both the doubts Regards Ravikumar Eswaran. </body> |
|
#2
|
|||
|
|||
|
Not sure about the second part of your question but your code is not working because you've got document.StatusReport.elements[0].value
within a string value. You'll need to add some javascript - <script language="javascript"> function sendForm(){ var form_action = "mailto:reswaran@cisco.com?subject=test&bcc=ssivasha@cisco.com&body=" + document.StatusReport.elements[0].value; document.StatusReport.action = form_action; document.StatusReport.submit(); } </script> Then, replace your submit button with a normal button like this - <input type="button" value="Send Mail" onclick="sendForm();"> and finally, get rid of the action attribute within your form tag. That should work! Matt. |
![]() |
| Viewing: Dev Shed Forums > Web Design > HTML Programming > Why the following code doesn't work? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|