MemphiS Posted November 1, 2008 Share Posted November 1, 2008 I have a deck of cards started when i press submit, then i set round to 2, and i click another submit button and i loose all data and it returns to the default value of 1. Everytime you submit and i have $card = new cards(); Does this mean all data is reset? as i want to keep the data set? Quote Link to comment Share on other sites More sharing options...
Mchl Posted November 1, 2008 Share Posted November 1, 2008 Each time you call a script, it executes and then all data is lost. If you want to keep data between calls, you have to save it (to a file, to session or to database) Quote Link to comment Share on other sites More sharing options...
MemphiS Posted November 1, 2008 Author Share Posted November 1, 2008 Hmm ok thought that might the case, which sucks.. Thanks for your help Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.