Hi there,

Script to show on the web page that how many times user loaded it or refresh it. the counter restarted from 0 on closing the browser and open it again.

any help here will be appreciated.

Thanx

Recommended Answers

All 10 Replies

Member Avatar for stbuchok

Please show the code you need help with.

Hi stbuchok,

I am looking for the script. I don't have this one. I search on the net but yet could not find any thing but to refresh pages automatically or manually but to just to count how many times it refresh and the counter shown some where on the page is my requirement.
If you can help me on this. for some good java programmer, i think its easy for him but may be until now, no one ask such thing.

Thanx

Hi Naranga,

if u can help me here too.

Try using cookies on page load.

http://www.w3schools.com/js/js_cookies.asp

I don't need cookies. What I need is that,

open a page and there is a text box showing the number 1, after each refresh/submit, this number will go +1 (2,3,4,5,6 ......) so that user know how many times he submit the form (the page is actually a form and on each submit, it redirects to the same webpage (form) so that user can submit the form again).

I hope this clears all.

Member Avatar for stbuchok

So you want the user to know how many times they submitted the form, correct?

If so, again, use cookies.

So you want the user to know how many times they submitted the form, correct?

If so, again, use cookies.

No i dont wana know how many times thay submitted the form, the one submitting must know by seeing on the form itself, so that like after 20 or 30 submit he will stop. This is for the user only, for the one who is submitting the form

Member Avatar for stbuchok

Yeah, that's what I said "So you want the USER to know how many times THEY submitted the form, correct?"

And yet again, USE COOKIES. Please, just read up on how to use cookies. Cookies can hold the information and it is a user by user basis stored on the client machine. Please, just read up on it.

Yeah, that's what I said "So you want the USER to know how many times THEY submitted the form, correct?"

And yet again, USE COOKIES. Please, just read up on how to use cookies. Cookies can hold the information and it is a user by user basis stored on the client machine. Please, just read up on it.

Ok i will read it up.

but I need that to be appear anywhere on the form page too. Will cookie stuff can do that too. Also I am not very good at these stuff.

Member Avatar for stbuchok

Cookies are containers that you can store things about the client into them and retrieve from them. It is done on a per user basis so that the information pertain only to that user. Because you are able to retrieve the data, you are able to display it where ever your heart desires.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.