> > I have a beginner's question. > > I'm trying to redirect the program flow to another .htm page using > $http_headers_out{Location} but I also want to pass a message ($msg) to the > new page using POST method. > > [- > $msg = "Error saving data #53: really really long explanation...."; > $http_headers_out{Location}="acc_admin.htm"; > exit; > -] > > What's the best way to do that? >
You can't do a POST request as an redirect, but you can do a GET to pass the data [- $r = shift ; $http_headers_out{Location}="acc_admin.htm?msg=" . $r -> Escape ($msg, 2) ; The Escape makes sure you don't get trouble with any special chars inside the url Gerald ------------------------------------------------------------- Gerald Richter ecos electronic communication services gmbh Internetconnect * Webserver/-design/-datenbanken * Consulting Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: [EMAIL PROTECTED] Voice: +49 6133 925131 WWW: http://www.ecos.de Fax: +49 6133 925152 ------------------------------------------------------------- --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]