Hi,
I think I now what you’re wanting because I think I did something similar in my hosting days.
Although the example website you gave in the zip file uses a more complex JavaScript function that I have never really seen used before.
I think you can do what you need to do in simple HTML editing.
Firstly I see that you don’t have a opening and closing <form></form> tag in your html index page.
You’ll need to add the opening tag at about line 66, here you will specify what action will be done once the user presses the submit bottom. So add this:
HTML Code:
<form method="post" action="http://www.domainname.co.uk:2082/login" >
That presumes your cPanel login is on port 2082.
Next you will need to edit your input text types so that the name matched those on the cPanels login page. Usually it names its username field “user” and its password field “pass” so change these lines:
HTML Code:
<input name="textfield3" type="text" value="Username" size="20" maxlength="20">
<input name="textfield22" type="text" value="Password" size="20" maxlength="20">
To
HTML Code:
<input name="user" type="text" value="Username" size="20" maxlength="20">
<input name="pass" type="text" value="Password" size="20" maxlength="20">
Next you will need to add a submit button as you currently don’t have one as the current system uses a linked image which is not what you want.
Now so things look the same as before the submit button will need some customizing. So add this where the current linked image is.
HTML Code:
<input name="Submit" type="image" src="images/login.jpg" style="border:'none';">
I made it use the same image as the image before and added a quick style so that the default border lines round the edges aren’t shown.
Now you can add the closed form tag </form> in about line 85 after the </table> tag.
Then that should be it.
I hope that ramble was able to help you at all. If you get stuck again I am sad to say that Ill be gone for two weeks so good luck till then.