faqts : Computers : Programming : Languages : PHP : kms : Functions

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 10 people (70%) answered Yes
Recently 6 of 8 people (75%) answered Yes

Entry

If I assigened a value to a variable within my PHP script, when the user refreshes the page how do I not lose the value?

May 21st, 2001 17:36
Onno Benschop, Kamel Jabber,


If you're using PHP3 you need to store it somewhere, like a database.

If you're using PHP4 you can use session variables.