ianhull
07-05-2005, 08:41 AM
Hi guys,
Can anyone please help with passing variables to nextpage.php but not displaying them?
or provide any ideas on how to store all the variables which a displayed on my first page globally?
Also this session thingy how does this work?
I think that it works like this but if someone could confirm it that would be great.
use a session start on the first page, this will give a unique number and letter combination created by the server something like a4s877dsr8943jc09kkl
and throughout the site the user will keep this same identifier session number?
What I have upto now is a select dropdown box which retrieves a mysql column called companyname from my table customers.
After selecting the company and pressing next my next page has a sql query which selects companyname, companyaddress, telephone, extention, fax, postcode, email, website FROM customers WHERE companyname =form1 from the last page.
All these columns are then stored in variables with the column name ie $companyname, $fax etc
What I would like to do is have all these variables stored globally so that I do not have to keep querying the database.
Any ideas how I would achieve this?
Thanks in advance :)
Can anyone please help with passing variables to nextpage.php but not displaying them?
or provide any ideas on how to store all the variables which a displayed on my first page globally?
Also this session thingy how does this work?
I think that it works like this but if someone could confirm it that would be great.
use a session start on the first page, this will give a unique number and letter combination created by the server something like a4s877dsr8943jc09kkl
and throughout the site the user will keep this same identifier session number?
What I have upto now is a select dropdown box which retrieves a mysql column called companyname from my table customers.
After selecting the company and pressing next my next page has a sql query which selects companyname, companyaddress, telephone, extention, fax, postcode, email, website FROM customers WHERE companyname =form1 from the last page.
All these columns are then stored in variables with the column name ie $companyname, $fax etc
What I would like to do is have all these variables stored globally so that I do not have to keep querying the database.
Any ideas how I would achieve this?
Thanks in advance :)