Static Count

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
MikeEller
Forum Newbie
Posts: 11
Joined: Sun Feb 05, 2006 3:43 pm

Static Count

Post by MikeEller »

Hello,

I have a project where I need to keep a running count.
I have a form. When the user clicks on the save button, I need the two form values from input text boxes to be written to file. That works fine.
I also want to keep a running count of how many saves the user does. The user is creating a list. Each list item will be bookmarked in the resulting HTML file. I wanted to capture the number when the user clicks the save button and use that value in the bookmark link. Then I need to increment the number.
I have tried using session variables and static variables. Something occurs during the submit...I am guessing it is sending the data to the server...so the increment only happens once.

Is there a way to let the user enter as many items as he needs, capture that data, and then submit it all at once?


Thanks in advance.

ton80
Post Reply