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
two questions: directory locking - .htaccess and a checkbox
Moderator: General Moderators
- JAB Creations
- DevNet Resident
- Posts: 2341
- Joined: Thu Jan 13, 2005 6:44 pm
- Location: Sarasota Florida
- Contact:
Re: two questions: directory locking - .htaccess and a checkbox
Code: Select all
<form action="javascript: verify_form();" method="post">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
Look like Jab is tired. You should use onsubmit even, not action attribute.
If verify_form function will return 'false', then form won't be submitted.
Code: Select all
<form action="URL_GOES_HERE" onsubmit="return veify_form();" method="post">