this works for input box. html values comes back after submit
my $q = new CGI; my $firstname = $q->param('firstname'); my $lastname = $q->param('surname'); print qq|content-type: text/html\n\n|; print qq|<form action="$ENV{SCRIPT_NAME}" method="post">\n|; print qq|<input name="firstname" type="text" value="$firstname"/><hr/> +|; print qq|<input name="surname" type="text" value="$lastname"/><hr/>| +; print qq|<input type="submit" name="form_submit" value="go">|;
is there a way to make it work also on select. coz tried it and never work
<form action="$ENV{SCRIPT_NAME}" method="post"> <select name="cars" value="$perl_string"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat">Fiat</option> <option value="audi">Audi</option> </select> </form>
In reply to return values on select after submit by bigup401
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |