piclist 2001\01\29\134412a >
Thread: Calling HTML/CGI wizards....Auto page refreshing
www.piclist.com/techref/index.htm?key=calling+htmlcgi
flavicon
face BY : Steven J. Devine email (remove spam text)



> I wanted to implement a quick and dirty way of refreshing a page generated from a CGI script.
> It's quite easy to do it the dirty way, with the <META HTTP-EQUIV="Refresh" tag arrangement but it expects a URL to be specified....
> As I have "written out" the META tag via CGI, I don't have a specific URL to refresh "back to."
>
> The page can be manually refeshed via a submit button; is there a way of embedded the "submit" into the meta tag so that the refresh pretends that the
>  submit button is being pressed?
> Is it as easy as just specifying the Perl/CGI script that would be normally called on the submit?

How about entering the cgi script in the refresh?  You can sepcify parameters on the command line (which would be the same as the parameters received for the first call in your case).  For instance, lets assume you received a name parameter and I entered Steve... you could write out the refresh tag with the folloring url:
   http://www.yourdomain.com/cgi-bin/somescript?name=steve

There are other conversions necessary to escape spaces and other special characters...  but that's a start...  look up CGI on the net to get more info on the character escapes, sending multiple parameters, etc.

Steve
------------------------------------------------------------------------
Steven J. Devine, President, Consultant, TZOGON Enterprises Incorporated
         President, EAA Chapter 136 (LWM/Merrimac Valley)
spamBeGonestevespamspamtzogon.com          HAM Tech lic: N1YZJ      http://www.tzogon.com
               http://www.tzogon.com/~steve/glass_cockpit
                 http://www.tzogon.com/~steve/stolch801
------------------------------------------------------------------------

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.


<003d01c08a23$7fc77380$7a3614d0@ifpcorp.com> quoted-printable

See also: www.piclist.com/techref/index.htm?key=calling+htmlcgi
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) Calling HTML/CGI wizards....Auto page refreshing

month overview.

new search...