[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] name=value
- Subject: [ale] name=value
- From: hiddink at sipromicro.com (Bert Hiddink)
- Date: Thu, 15 Jul 1999 17:08:06 -0600
Hello,
I am new on this list and very new on shell scripting.
I have this script:
#!/bin/sh
echo Content-type:text/html
echo
/usr/local/bin/analog32 +g/usr/home/coninpym/analog/analog.cfg +F-00-
00-$1 +T-00-00-01
$1 is the variable I need to execute properly the analog32. I works
when I do this through a link from the web f.e.
http://www.mysite.net/cgi-bin/analog.sh?123
where 123 corresponds to the value of $1.
However, now I want to control this through a form f.e.:
<INPUT CHECKBOX NAME=analog VALUE=123>
The problem is that then not only the value is send to the server but
also the 'name'. So the script receives 'analog=123' instead of
'123'.
I suppose I should do a split once the variable arrives at the script
but I do not know where to start. Could you help me?
Thanks in advance and best regards,
-brt
Bert Hiddink, FUNDACION GALILEO
Correo electronico: hiddink at sipromicro.com
Sitio: http://www.sipromicro.com
Tel. (506) 280 8683, telefax. (506) 280 8847