Page 1 of 1

two questions: directory locking - .htaccess and a checkbox

Posted: Thu Aug 06, 2009 4:00 pm
by xtk
first question,

is there any way to stop a form button from being summited if the corresponding checkbox is not clicked, without requiring any mass useless code? for example: required=1

second question,

via .htaccess,

i would like the access set by this file to only allow input of the password only, or in other words no input box for the username

i cant seem to find any source code that does not have any backdoors to other functions..

regards

Re: two questions: directory locking - .htaccess and a checkbox

Posted: Thu Aug 06, 2009 9:35 pm
by JAB Creations

Code: Select all

<form action="javascript&#058; verify_form();" method="post">
Your sentence structure didn't make sense for your second question so I'm not sure what it is you're asking.

Note The forum software erroneously is converting my colon to an HTML entity, it should be javascript: verify_form();.

Re: two questions: directory locking - .htaccess and a checkbox

Posted: Fri Aug 07, 2009 11:36 am
by kaszu
Look like Jab is tired. You should use onsubmit even, not action attribute.

Code: Select all

<form action="URL_GOES_HERE" onsubmit="return veify_form();" method="post">
If verify_form function will return 'false', then form won't be submitted.