You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Tom Conway <te...@hotmail.com> on 2003/11/11 22:36:04 UTC

Data lost when browser refreshed

I'm just starting with mod_perl. I converted my cgi scripts for mod_perl 
usage. They work fine as plain cgi. When i go from one screen to another via 
submit or link, or just refresh a couple of times my data disappears. No 
errors, just a blank form. I have no idea what is wrong.

I've verified a few things...

mod_perl is installed
GATEWAY_INTERFACE CGI-Perl/1.1
MOD_PERL    mod_perl/1.99_05-dev

In Httpd.conf...
PerlModule Apache2 CGI DBD::mysql (Also tried Apache::DBI here too)

Sample of whats in my scripts...
use sctrict;
my ($dbh) = DBI->connect('DBI:mysql:mypwd:localhost','myuser','myuser');
my ($sql)   = qq{SELECT * FROM somtable};
...
Display Data
end html

_________________________________________________________________
Crave some Miles Davis or Grateful Dead?  Your old favorites are always 
playing on MSN Radio Plus. Trial month free! 
http://join.msn.com/?page=offers/premiumradio


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html


Re: Data lost when browser refreshed

Posted by Stas Bekman <st...@stason.org>.
Tom Conway wrote:
> I'm just starting with mod_perl. I converted my cgi scripts for mod_perl 
> usage. They work fine as plain cgi. When i go from one screen to another 
> via submit or link, or just refresh a couple of times my data 
> disappears. No errors, just a blank form. I have no idea what is wrong.

First of all, please go and get mp-1.99_11 [1], 1.99_05 is *very* old and lots 
of bugs were fixed since then. If you still have a problem see: 
http://perl.apache.org/bugs/

1) 
http://perl.apache.org/download/source.html#Development_mod_perl_2_0_Source_Distribution

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html