[lug] cgi text format

j davis davis_compz at hotmail.com
Fri Jun 28 10:47:21 MDT 2002


thanks Ralf Mattes, i dont use get and i hate html formated mail

jd

>From: rm at fabula.de
>Reply-To: lug at lug.boulder.co.us
>To: lug at lug.boulder.co.us
>Subject: Re: [lug] cgi text format
>Date: Fri, 28 Jun 2002 17:41:47 +0200
>MIME-Version: 1.0
>Received: from [66.54.152.73] by hotmail.com (3.2) with ESMTP id 
>MHotMailBEE5CD60000F4004321D4236984909E20; Fri, 28 Jun 2002 08:36:00 -0700
>Received: (qmail 5194 invoked by uid 0); 28 Jun 2002 15:35:31 -0000
>Received: from localhost (HELO community.tummy.com) 
>(?nupw+T5CRdTpTrQw2PBmgszQU/HcZEtk?@127.0.0.1)  by localhost with SMTP; 28 
>Jun 2002 15:35:18 -0000
>Received: (qmail 4840 invoked by alias); 28 Jun 2002 15:33:27 -0000
>Received: (qmail 4836 invoked by uid 0); 28 Jun 2002 15:33:22 -0000
>Received: from www.elogos.de (212.18.192.92)  by community.tummy.com with 
>SMTP; 28 Jun 2002 15:33:21 -0000
>Received: by www.elogos.de (Postfix, from userid 5001)id 9D3011049B9; Fri, 
>28 Jun 2002 17:41:47 +0200 (CEST)
>From lug-admin at lug.boulder.co.us Fri, 28 Jun 2002 08:37:51 -0700
>Return-Path: <alias-blug_dom-lug-owner at lug.boulder.co.us>
>Delivered-To: mailman-lists.lug.boulder.co.us-lug at lists.lug.boulder.co.us
>Delivered-To: alias-blug_dom-lug at lug.boulder.co.us
>Message-ID: <20020628154147.GF30115 at www>
>References: <F216mNEYnkZvLQET7ff00000493 at hotmail.com> 
><000701c21eb6$ab7751c0$e9c8c284 at PAUL>
>In-Reply-To: <000701c21eb6$ab7751c0$e9c8c284 at PAUL>
>User-Agent: Mutt/1.3.24i
>Sender: lug-admin at lug.boulder.co.us
>Errors-To: lug-admin at lug.boulder.co.us
>X-BeenThere: lug at lug.boulder.co.us
>X-Mailman-Version: 2.0.11
>Precedence: bulk
>List-Help: <mailto:lug-request at lug.boulder.co.us?subject=help>
>List-Post: <mailto:lug at lug.boulder.co.us>
>List-Subscribe: 
><http://lists.lug.boulder.co.us/mailman/listinfo/lug>,<mailto:lug-request at lug.boulder.co.us?subject=subscribe>
>List-Id: Boulder (Colorado) Linux Users Group -- General Mailing List 
><lug.lug.boulder.co.us>
>List-Unsubscribe: 
><http://lists.lug.boulder.co.us/mailman/listinfo/lug>,<mailto:lug-request at lug.boulder.co.us?subject=unsubscribe>
>List-Archive: <http://lists.lug.boulder.co.us/pipermail/lug/>
>
>On Fri, Jun 28, 2002 at 09:15:41AM -0600, Paul Bille wrote:
> > 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.
>
>Only if you use GET as the form's method - not a good idea for longish
>text fields since the max. length of a GET request can be rather limited.
>
>
> > 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.
>
>Hmm, he wants to send the content of the text box as a mail. Do we
>_really_ want HTML in emails :-? Noooo
>
>
>Back to the original question: the <textarea> tag has an optional
>parameter 'wrap' that can take one of three values:
>
>   off = no authomatic wrapping takes place.
>
>   virtual = the browser will wrap the text so it fits into the textbox
>   but will send the content as one string.
>
>   physical = wrap the text in the form and send the inserted line breaks
>   to the processing application.
>
>Hope this helps,
>
>      Ralf Mattes
> > Hope this helps,
> > Paul
> > http://bille.cudenver.edu/author
> >
> > _______________________________________________
> > Web Page:  http://lug.boulder.co.us
> > Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
> > Join us on IRC: lug.boulder.co.us port=6667 channel=#colug
>_______________________________________________
>Web Page:  http://lug.boulder.co.us
>Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
>Join us on IRC: lug.boulder.co.us port=6667 channel=#colug


thanks,
jd

jd at taproot.bz
http://www.taproot.bz

_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx




More information about the LUG mailing list