Page 1 of 1

Reloading pages with php and accessing variables

Posted: Tue Nov 15, 2005 3:40 pm
by Coxster
I've used forms to reload the page using

Code: Select all

action="<?=$self?>">
Now I need to reload the page in the same way when there isn't a form.

The code o far creates a database and table and then should reload the page, setting a variable value so that the page now knows that the db has been created and the user can now try and login.

How can I achieve this when there is no form?

Posted: Tue Nov 15, 2005 3:50 pm
by foobar
Using session variables. Check the PHP Manual entry on sessions for more info.

Posted: Tue Nov 15, 2005 4:45 pm
by duk
sessions its the best choice, more ideas is using cookies...

Posted: Wed Nov 16, 2005 12:52 am
by Coxster
Thnaks for your help, I shall look into sessions, I must know this soon for my project anyway ;-)