maluch Posted June 30, 2008 Share Posted June 30, 2008 I need to be able to record at what time a user checked what checkbox for a purpose of an academic study. Is this possible with php and if so how? Thanks a lot. Link to comment https://forums.phpfreaks.com/topic/112529-check-box-help/ Share on other sites More sharing options...
thatsgreat2345 Posted June 30, 2008 Share Posted June 30, 2008 You will need to use javascript. When it is clicked then you will probably need to use ajax as well to send it to the PHP to save it. Link to comment https://forums.phpfreaks.com/topic/112529-check-box-help/#findComment-577807 Share on other sites More sharing options...
maluch Posted June 30, 2008 Author Share Posted June 30, 2008 could you provide me with some sample code? thanks. Link to comment https://forums.phpfreaks.com/topic/112529-check-box-help/#findComment-577808 Share on other sites More sharing options...
thatsgreat2345 Posted June 30, 2008 Share Posted June 30, 2008 I do not know much javascript however I do know some but to whip up an example based on my knowledge of javascript would take too long. But you will need a small knowledge of DOM and just some form and input names. I like using mootools as they have a good example and easy to ajax functions. Link to comment https://forums.phpfreaks.com/topic/112529-check-box-help/#findComment-577811 Share on other sites More sharing options...
MasterACE14 Posted June 30, 2008 Share Posted June 30, 2008 on what sought of time scale do you need to workout when they pressed it? when they pressed it down to the exact second? kinda like a reaction time thing? or give or take a minute? if its option 2, when its selected and 'submitted' use time() to get the time they pressed it, then use date() to put it in a more readable format and then log that in a text file or database whatever... Regards ACE Link to comment https://forums.phpfreaks.com/topic/112529-check-box-help/#findComment-577877 Share on other sites More sharing options...
maluch Posted June 30, 2008 Author Share Posted June 30, 2008 I need the time that the checkbox was checked rather than submitted... Link to comment https://forums.phpfreaks.com/topic/112529-check-box-help/#findComment-578273 Share on other sites More sharing options...
br0ken Posted June 30, 2008 Share Posted June 30, 2008 I need the time that the checkbox was checked rather than submitted... Then you need to use Ajax or code your whole project in flash. Link to comment https://forums.phpfreaks.com/topic/112529-check-box-help/#findComment-578282 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.