BTW, this was written before I found PM, and I knew nothing about CGI.pm. Not that it matters, but I intercept the submit via "onclick=" and not "onsubmit=" as I originally posted. I don't know if this is enough code or not:
print << "--eot1--"; <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-885 +9-1"> <meta name="GENERATOR" content="Mozilla/4.75 [en] (Win98; U) [Netsc +ape]"> <title>USA Fourteenth Faculty Survey, 2001</title> </head> . . . <form name="Survey" method="POST" action="$SubmitURL"> . . . <table border=0 width="100%"> <tr><td><TEXTAREA NAME="xiv" ROWS="6" COLS="55" wrap="soft"></TE +XTAREA></td></tr> <tr><td><input type="button" name="SubmitSurvey" value="Submit S +urvey" onclick="javascript:return SurveySubmit(document.forms[0])"></ +td></tr> </table> . . . </form> --eot1-- . . . function SurveySubmit (form) { var CGI_URL = "http://jaguar1.usouthal.edu/cgi-bin/surveys/facsenat +e/" form.xiv.value = escape(form.xiv.value) form.action = CGI_URL + "writesurvey.pl" form.submit() return true }
Update: Added javascript sub SurveySubmit(). Also, in one application there was only one person using the form for input so I told them to be sure and use &acute; instead of the single quote and there's no problem (still an unacceptable solution though).

--Jim


In reply to Re: Re: (OT) TEXTAREA and the Single Quote by jlongino
in thread (OT) TEXTAREA and the Single Quote by jlongino

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.