On Wed, December 19, 2007 1:37 pm, Robert Erbaron wrote:
Problems:
- hitting back on p2.php shows the dreaded The page you are trying to
view contains POST...
If you dread seeing this, then play pinball with the user...
-- OK and Cancel both generated unsatisfactory results
Unsatisfactory
Maybe I'm too old a dog to teach a new trick to.
I've got the redirect example discussed a couple days ago working
nicely. Back, Refresh, 'wrong username' - all work nicely.
But I like the idea of reducing the load on the server, maybe
alleviating some redirect pinball. So been trying to use
Robert Erbaron wrote:
Maybe I'm too old a dog to teach a new trick to.
I've got the redirect example discussed a couple days ago working
nicely. Back, Refresh, 'wrong username' - all work nicely.
But I like the idea of reducing the load on the server, maybe
alleviating some redirect
1. p1.php would post to itself. Do data validation. After data validation
upon error, include p1.php again with included error messages
upon success, redirect to p3.php with congrats.
Yeah, I could do this, but it uses a redirect, and like you said, it's gnarly.
2. p1.php
Robert Erbaron [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
1. p1.php would post to itself. Do data validation. After data
validation
upon error, include p1.php again with included error messages
upon success, redirect to p3.php with congrats.
Yeah, I could do
On Dec 19, 2007 3:55 PM, Robert Erbaron [EMAIL PROTECTED] wrote:
1. p1.php would post to itself. Do data validation. After data
validation
upon error, include p1.php again with included error messages
upon success, redirect to p3.php with congrats.
Yeah, I could do
On Wed, 2007-12-19 at 14:23 -0700, Dan wrote:
Robert Erbaron [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
1. p1.php would post to itself. Do data validation. After data
validation
upon error, include p1.php again with included error messages
upon
Hello!
On Fri, 2005-10-14 at 11:33 -0700, Cima wrote:
hi all,
i have my web site working something like this: in every php script i have
require(auth.php). this auth.php has my connection to my postgresql server
and database along with some other stuff i need for the user to be
On Sat, 2005-05-14 at 19:34 -0700, Richard Lynch wrote:
On Fri, October 14, 2005 11:33 am, Cima said:
i have my web site working something like this: in every php script i have
require(auth.php). this auth.php has my connection to my postgresql server
and database along with some other
Cima wrote:
hi all,
i have my web site working something like this: in every php script i have require(auth.php). this auth.php has my connection to my postgresql server and database along with some other stuff i need for the user to be authenticated to my web site. when i log on, this
Hi,
this depends on which connection-function you've used. If you've decided
to use pg_pconnect(), there is just one connection.
If you use pg_connect, everytime a new connection is established (and
after finishing the script, it's closed though)
HTH
Christian
hi all,
i have my web site
If your php is using a permanant connection then it will be the same
connection otherwise it will be a new connection as the connection will
be droped at the end of the thread. As I understand it anyway!!
Hope this helps!
Mike
Cima wrote:
hi all,
i have my web site working something
hi all,
i have my web site working something like this: in every php script i have
require(auth.php). this auth.php has my connection to my postgresql server and
database along with some other stuff i need for the user to be authenticated to
my web site. when i log on, this auth.php connects
Hello Cima,
Friday, October 14, 2005, 12:33:57 PM, you wrote:
C any info will be highly appreciated!!
The easiest way to handle this is to set a session variable once
they're authenticated and on all your pages you have something like
this:
session_start();
if (!$_SESSION['isAuthenticated'] ==
On 10/14/05, Cima [EMAIL PROTECTED] wrote:
hi all,
i have my web site working something like this: in every php script i have
require(auth.php). this auth.php has my connection to my postgresql server
and database along with some other stuff i need for the user to be
authenticated to my
On 5/14/05, James Williams [EMAIL PROTECTED] wrote:
On 10/14/05, Cima [EMAIL PROTECTED] wrote:
hi all,
i have my web site working something like this: in every php script i have
require(auth.php). this auth.php has my connection to my postgresql server
and database along with some
On Fri, October 14, 2005 11:33 am, Cima said:
i have my web site working something like this: in every php script i have
require(auth.php). this auth.php has my connection to my postgresql server
and database along with some other stuff i need for the user to be
authenticated to my web site.
i have made a page (overall.php) in which several elements are defined:
the connection with the database
a function called session_checker to check if users are logged in
and a last function(function getuserinfo()) that substracts values from
the database based on the session variables of the
Have you looked at the GLOBAL keyword?
http://uk.php.net/manual/en/language.variables.scope.php
-Original Message-
From: Reinhart Viane [mailto:[EMAIL PROTECTED]
Sent: 04 November 2004 23:02
To: [EMAIL PROTECTED]
Subject: [PHP] using require or include?
i have made a page
: RE: [PHP] using require or include?
Have you looked at the GLOBAL keyword?
http://uk.php.net/manual/en/language.variables.scope.php
-Original Message-
From: Reinhart Viane [mailto:[EMAIL PROTECTED]
Sent: 04 November 2004 23:02
To: [EMAIL PROTECTED]
Subject: [PHP] using require
Reinhart Viane wrote:
i have made a page (overall.php) in which several elements are defined:
the connection with the database
a function called session_checker to check if users are logged in
and a last function(function getuserinfo()) that substracts values from
the database based on the session
21 matches
Mail list logo