From: Kon <ang...@ip...> - 2003-11-26 01:02:17
|
Johan, Prior to playing around with the phpESP dataabase make sure you create a backup of the database. as for disabling the enter key you can use javascript to do it but remember that it will only work on browsers that have javascript enabled and those that understand the onkeypress event. Having said that here's a simple way of doing it. function disableKeys(e){ var Key = document.all?window.event.keyCode:e.which; return Key != 13; } document.onkeypress = disableKeys; if (document.layers) document.captureEvents(Event.KEYPRESS); entering this code into the manage.php file (within the head tags) will disable the enter key on every page that uses this file (which is almost all of them). Be warned that this too has implication. When entering text into a textarea for example you will no longer be able to use the enter key to create new lines. Regards Kon On Wed, 2003-11-26 at 03:02, Johan Geertsma wrote: > Hi, > > Can someone tell me how to remove the results from 1 respondent? > > I now did it to set the COMPLETE to N. But I want to remove all the stuff > that this person submitted. I know how to find out which id he.she has. > > > Why? > Well that is my next question. How can I disable the enter key? > When people start a survey and hit enter, the form is submitted. > (yeah I could use the option that all answers are required). But you > guess it, the survey is not jet complete. > > I searched around for something to disable the enter key, but I see that > there is > a little javascript that does something before sending. > > anyone? > > Thanks, > Johan > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > Does SourceForge.net help you be more productive? Does it > help you create better code? SHARE THE LOVE, and help us help > YOU! Click Here: http://sourceforge.net/donate/ > _______________________________________________ > phpESP-devel mailing list > php...@li... > https://lists.sourceforge.net/lists/listinfo/phpesp-devel |