two questions: directory locking - .htaccess and a checkbox

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
User avatar
xtk
Forum Newbie
Posts: 10
Joined: Sat Aug 01, 2009 4:28 pm

two questions: directory locking - .htaccess and a checkbox

Post 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
User avatar
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

Post 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();.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

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

Post 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.
Post Reply