I'm trying to parse variables from POST action in a bash cgi script. First of all I build my html form with this contents
i=0;
while read line; do
i=$((i+1));
printf "<li><input type=\"checkbox\" name=\"check_list[]\" value=\"$i\"/>%s</li>\n" "$line"
done < $dati
Where $dati is a text file. After this I read this
POST=$(</dev/stdin)
and print this sample
check_list%5B%5D=34&check_list%5B%5D=35&check_list%5B%5D=36&check_list%5B%5D=37&xec=somestatus
I found different way to parse output but nothing working. Any suggestion?
Aucun commentaire:
Enregistrer un commentaire