Reloading pages with php and accessing variables

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Coxster
Forum Newbie
Posts: 14
Joined: Tue Nov 01, 2005 3:22 am

Reloading pages with php and accessing variables

Post 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?
foobar
Forum Regular
Posts: 613
Joined: Wed Sep 28, 2005 10:08 am

Post by foobar »

Using session variables. Check the PHP Manual entry on sessions for more info.
duk
Forum Contributor
Posts: 199
Joined: Wed May 19, 2004 8:45 am
Location: London

Post by duk »

sessions its the best choice, more ideas is using cookies...
Coxster
Forum Newbie
Posts: 14
Joined: Tue Nov 01, 2005 3:22 am

Post by Coxster »

Thnaks for your help, I shall look into sessions, I must know this soon for my project anyway ;-)
Post Reply