[lug] cgi text format
Paul Bille
Paul at ebille.cudenver.edu
Fri Jun 28 09:15:41 MDT 2002
jd > Is there away using cgi i can pass the info from the text box
preserving spacing and format?
jd,
I presume users enter text in your text-box as a string. The browser
wraps the input to fit within the box but this is just for display. The
string of text is returned to the server as a command line parameter,
appended to the URL pointing to your cgi application e.g.
http://www.taproot.bz/myapp.exe?This%xxis%xxthe%xxinput%xxtext.
Everything after the ? Is the data from the text-box. Some characters
are encoded including spaces and line feeds. Your app must convert the
encoded characters back to the original character to restore the
formatting.
A well written cgi application will allow the client to embed HTML
formatting commands into the text box.
Hope this helps,
Paul
http://bille.cudenver.edu/author
More information about the LUG
mailing list