Assuming that the cgi script is what's creating the form and that you are using CGI, you could do something similar to the following.
#!/usr/local/bin/perl -w use strict; use CGI my $q = CGI::new(); print <<HTML; <form action="name of this script.cgi"> Name: <input type="text" name="Name" value="$q->param{'Name'}"> Address: <input type="text" name="Address" value="$q->param{'Address +'}"> <input type="submit" value="Refresh"> </form> HTML
Basically, if $q->param{'Address'} exists, it will fill that in as the value in the form.
Hope that helps.
-thabenkstamy $name = 'Ben Kittrell'; $name=~s/^(.+)\s(.).+$/\L$1$2/g; my $nick = 'tha' . $name . 'sta';
In reply to Re: How do i refresh a page from the perl script.
by thabenksta
in thread How do i refresh a page from the perl script.
by anjaana78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |