in reply to How do i refresh a page from the perl script.
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';
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: How do i refresh a page from the perl script.
by epoptai (Curate) on Jul 02, 2001 at 23:14 UTC | |
Re: Re: How do i refresh a page from the perl script.
by anjaana78 (Novice) on Jul 02, 2001 at 23:15 UTC | |
by chromatic (Archbishop) on Jul 03, 2001 at 00:57 UTC |