[PHP] page expired

2001-12-26 Thread php_guy

Hi,

I have problem in that my webpage in which I use sessions and MySql gives
a "warning paged expired" error when the user presses "back" button on the
browser.  Basically, the function of the webpages will be to store user
enquiries in the Mysql database until the user presses a "send email
enquiry" button in which afterwards the accumulated enquiries (recognized
by the sessionid) of the session will be sent to the relevant person.  The
pages are modularized.  All of the pages start off by "including" a
"sessions.php" which has the following:

session_start();
$connection = mysql_connect("localhost", "root", "password") or die
("Couldn't connection to database");
$db = mysql_select_db("micromotor", $connection) or die
("Couldn't select database.");
?>


The pages also "include" a form.php file which has the following to enter
data into the Mysql database.  A few lines from this file are as follows:

else
{
$insert_sql = "INSERT INTO test VALUES('$sessionid', '$modelno', '$qty',
'$purpose', '$comments', $date')";
mysql_query($insert_sql) or die ("could not insert records");


After I enter information into the form , I find that if I want to use the
"back" button on the browser, the browser displays a "warning page
expired".  Then I have to press "back" one more time before I can get to
the page that I want.

I was wondering am I registering my sessions id the wrong way?

Thanks.

Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] difference between

2001-09-09 Thread php_guy

Hi,

I am a newbie at this PHP thing and I have been working from information
on the web and from books.

I noticed that some start the PHP script with http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] login access

2001-09-10 Thread php_guy

Hi,

I was wondering how does one create a PHP script that can verify a
database for the login ID and password and then allow that person to
access a particular page.

I am not looking for extreme details here , but I just want to get a
general idea.

I can understand how to make a script to verify the username and password
through mysql and PHP, but after verification how can I take that person
to another webpage automatically.

Is it a combination of PHP , mysql and .htaccess?

If anyone can shed some light on this mystery, I'll be glad to here about
it.

Thanks.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]