Jump to content

button incriment


Noctagon

Recommended Posts

I am not sure how way off I am here, but here goes :)

I have a button in a form and when I click it I want the value of the variable $count to increase by 1.

Any assistance would be greatly appreciated.

Thanks :)

[code]<input type="button" name="$but1" value="1">

..........................................................

if (isset($but1)) $count = $count + 1;[/code]

Link to comment
Share on other sites

  • 1 month later...
Hi all,

I think I need to explain a little more  :)

I am TRYING to build a site where users can login......getting that bit done :)

Once a user is logged in there will be a page that has a button on it.....when the button is clicked a little counter next to the button will increment by 1 for each click in real time.....this will be user specific.....so 10 users could be logged onto the site and each clicking there own button and being displayed only their clicks

I will then be using the clicks value with PHP.

Any assistance would be greatly appreciated as other suggestions have appeared to me to be not able to cope with users.

Thank you :)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.