Web Hosting Talk







View Full Version : Cpanel code question


SiperNet
06-01-2002, 08:39 AM
Ok guys I don`t know why the hell I can`t get this to work but I thought I`d ask here. :D

Here is a piece of code that I know is wrong but I can`t seem to make it right. This is for the password protect on cpanel.

<form action="changepro.html">
<center>
<hr width="50%"><input type="checkbox" name="protected"
><cpanel Htaccess="checkprotected($FORM{'dir'})"> value="1">
<img align=absmiddle src="images/Padlock.gif" border=0>
Folder requires a password to access via http://<br>
Protected Resource Name:
<input type="text" name="resname" value="<cpanel Htaccess="resname($FORM{'dir'})">"> <br>
<input type="hidden" name="dir" value="<cpanel print="$FORM{'dir'}">">
<input type="submit" name="action" value="Save">
</center>
</form>

If anyone can lend a hand it would be appreciated. :)

Elena
06-01-2002, 09:59 AM
Small typo, you have a > after name="protected"
It should be:

<form action="changepro.html">
<center>
<hr width="50%"><input type="checkbox" name="protected" <cpanel Htaccess="checkprotected($FORM{'dir'})"> value="1">
<img align=absmiddle src="images/Padlock.gif" border=0>
Folder requires a password to access via http://<br>
Protected Resource Name:
<input type="text" name="resname" value="<cpanel Htaccess="resname($FORM{'dir'})">"> <br>
<input type="hidden" name="dir" value="<cpanel print="$FORM{'dir'}">">
<input type="submit" name="action" value="Save">
</center>
</form>

Anyhow, hope that was it! :D

SiperNet
06-01-2002, 12:18 PM
Hey Elena! :D

Nevermind I am an idiot today, was a simple fix! :eek: