F
FP
When a user clicks the "E-mail" button I need the contents of a
database comment field in the body of an e-mail. To compensate for
strange characters in the comment field this is the best solution I
could come up with. So far the only downside I can see is that the
body of the e-mail always starts with a space and an equal sign. Aside
from the fact that client e-mailing is unreliable, does my code seem
reasonable or am I out to lunch on this?
I'm using the text area because I couldn't compensate for some of the
double quotes.
<FORM ACTION="mailto:" METHOD="post" enctype="text/plain">
<div id="a" style="display: none">
<P><TEXTAREA NAME=" " ROWS=1 COLS=1 WRAP="virtual">
<? Comment Data Here?>
</TEXTAREA></P>
</div>
<INPUT TYPE=submit VALUE="E-mail">
</Form>
database comment field in the body of an e-mail. To compensate for
strange characters in the comment field this is the best solution I
could come up with. So far the only downside I can see is that the
body of the e-mail always starts with a space and an equal sign. Aside
from the fact that client e-mailing is unreliable, does my code seem
reasonable or am I out to lunch on this?
I'm using the text area because I couldn't compensate for some of the
double quotes.
<FORM ACTION="mailto:" METHOD="post" enctype="text/plain">
<div id="a" style="display: none">
<P><TEXTAREA NAME=" " ROWS=1 COLS=1 WRAP="virtual">
<? Comment Data Here?>
</TEXTAREA></P>
</div>
<INPUT TYPE=submit VALUE="E-mail">
</Form>