shell-script-pt
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [shell-script] CGI shell


From: Listas XTMS
Subject: Re: [shell-script] CGI shell
Date: Wed, 12 Feb 2003 18:49:46 -0200

Olá, Thobias!

Funcionou!

echo "<form method="post" action='teste2'>"
echo "Nome: "
echo "<input name="ABC" type="text" size="30" maxlength="30">"
echo "<input type="submit" name="Submit" value="submit">"
echo "</form>"
echo "<br><br>"
variavel=$(sed -n '1p')
RESPOSTA=`echo $variavel|cut -d "&" -f 1|cut -d "=" -f2|tr -s "+" " "`
echo $RESPOSTA


Obrigado pela ajuda


On Wed, 12 Feb 2003 18:09:24 -0200 (BRST)
Thobias Salazar Trevisan <address@hidden> wrote:

> 
> ae Eri,
> 
> se me lembro bem, com POST vc pega da entrada padrao. Podes fazer
> algo assim:
> 
> variavel=$(sed -n '1p')
> 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]