Article View: alt.linux
Article #516Re: CGI Scripts
From: P
Date: Fri, 14 Jul 2000 00:00
Date: Fri, 14 Jul 2000 00:00
48 lines
2109 bytes
2109 bytes
Hi David,
I have attached a little piece of code which will give you an idea on how to
parse the results of the form. My email is bernardosw@terraNOSPAM.com.br
(remove the NOSPAM from it ;) )
Sincerely,
Bernardo.
--------- start of code ------------
#!/bin/sh
while read line
do
FIELDNAME=`echo $line | cut -f1 -d=`
VALUE=`echo $line | cut -f2 -d=`
echo "the value of $FIELDNAME is $VALUE"
done
---------- end of code -----------
"David Homer" <davidhomer@hotmail.com> escreveu na mensagem
news:391eaea9.0@news2.cluster1.telinco.net...
> Hey guys,
>
> Im trying to use CGI-script with Apache on Linux... I need to say have a
> form that sends simple information and the the CGI script uses that
> information (sh script)
>
> I can get the form to send the information to the script but the script
sees
> it as
>
> value=thevalueyouputin
> Thats no good as I cant get the sh script to ignore the value= bit
>
>
> Do this make sense??? Please e-mail me on
> davidhomer@hotmail.com
>
> Thanks
>
> Dave
>
>
>
Technical Details
Message-ID:
<396f5f03$1@news.terra.com.br>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<391eaea9.0@news2.cluster1.telinco.net>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: faa64,b08749101be43dd5,start X-Google-Attributes: gidfaa64,public X-Google-Thread: f8a83,b08749101be43dd5,start X-Google-Attributes: gidf8a83,public X-Google-Thread: 100df9,b08749101be43dd5,start X-Google-Attributes: gid100df9,public X-Google-Thread: 100c5f,b08749101be43dd5,start X-Google-Attributes: gid100c5f,public X-Google-Thread: 102983,b08749101be43dd5,start X-Google-Attributes: gid102983,public From: "P@dīŋŊe" <none@hotmail.com> Subject: Re: CGI Scripts Date: 2000/07/14 Message-ID: <396f5f03$1@news.terra.com.br> X-Deja-AN: 646428524 References: <391eaea9.0@news2.cluster1.telinco.net> X-Original-NNTP-Posting-Host: operacao01.vix.zaz.com.br X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 X-Trace: 14 Jul 2000 15:42:11 -0300, operacao01.vix.zaz.com.br X-Original-Trace: 14 Jul 2000 15:42:11 -0300, operacao01.vix.zaz.com.br Newsgroups: alt.linux,alt.os.linux,alt.os.linux.mandrake,aus.computers.linux,comp.os.linux.admin