TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   Absolute Beginners (http://www.talkphp.com/absolute-beginners/)
-   -   help with cpanel login from my site (http://www.talkphp.com/absolute-beginners/89-help-cpanel-login-my-site.html)

suley 07-06-2005 09:52 AM

help with cpanel login from my site
 
hi guys i need some help im a compleate newbie here, i need to be able to login from the webpage either the script can be php or html as long as overall the page remans a html page. ive uploaded here http://rapidshare.de/files/2840986/html_help.zip.html a zip inside it is the index page i need doing inside a subdirectory it has a script i use but wont work when i try copyin over in the new inde page. i hope i make sence. All help appreciated

wisehosting 07-06-2005 09:55 AM

you mean you want to login to cpanel from your webpage - but need the html / php to do this?

suley 07-06-2005 09:57 AM

yep thats right Wisehosting- html prefrable or php but aslong as the page remains a html

CreativeLogic 07-06-2005 06:35 PM

Can you explain a little bit more of what you're looking to have happen?

4fingers 07-07-2005 01:24 AM

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.

suley 07-07-2005 07:47 AM

tks im giving it a shot now, lets hope it works.

suley 07-07-2005 08:14 AM

i tried it but still have problems uploaded here http://rapidshare.de/files/2865132/indexzmb.zip.html the login button dosent seem to want to go in its place but still wont let me login to cpanel :( anyone else have any ideas. Its ment to be able to let me login straight to cpanel when u click login

jaswinder_rana 07-07-2005 02:58 PM

i think thats because of these 2 lines
PHP Code:

<input name="Submit" type="image" src="images/login.jpg" style="border:'none';" width="46" height="12">
<
form method="post" action="http://www.zmbworld.co.uk:2082/" 

you see, that <input... line should be a part of the form like
PHP Code:

<form method="post" action="http://www.zmbworld.co.uk:2082/" >
<
input type="image" src="images/login.jpg" style="border:'none';" width="46" height="12"

like this, and may i suggest having a name for the form, in case you need to do some javascript stuff with it(just as extra)

4fingers 07-07-2005 05:19 PM

Yes you seem to be doing all wrong. On line 66 you have
HTML Code:

<form>
When you should have
HTML Code:

<form method="post" action="http://www.zmbworld.co.uk:2082/login" >
Then on lines 70 and 73 your input text fields have there name tributes starting whith a capital letter.
You may need to change those back to all lower case.
Then on line 77 take away that extra opening form tag and leave that closing form tag on line 78.
Hopefully that should clear things up

Although it does bring the question to why you are staring a hosting company when you dont have the basic HTML knowledge as it will come in handy later.

suley 07-08-2005 03:42 PM

guys i was Not successfull with the last attempt and totally messed it up
:( :( :( :(
Please could some one just edit it and reupload it or even just give me a full code to replace all that with? i would really appreciate it im new to php and dont know much about it

jaswinder_rana 07-08-2005 04:18 PM

you post the code of the page, preferable as an attachment and we'll try to fix it for ya.

4fingers 07-08-2005 04:51 PM

Ok fair enough. Although I havent even done anything in PHP yet we have been telling you to simply edit the HTML.
Try this:
http://rapidshare.de/files/2900286/i...edone.zip.html
And if that still doesnt work I have a few other ideas that could still work or we could copy that JavaScript example your current website uses.
The only thing I might suggest is you keep learning HTML as just haveing that basic knowledge will help you solve problems quicker in the future.

CreativeLogic 07-08-2005 05:32 PM

1 Attachment(s)
I attached a zip file with a working version of the index page. The correct fix was provided above from another member.

suley 07-11-2005 09:23 AM

thanks guys ure really greate of you guys to do that. Got to learn PHP yet. What do you think of that template there? We have premium servers in a really gud data centre with really gud features. Do you think that template suites us if were aiming for upmarket customers?

p.s ive uploaded a copy ofthe template to see @ http://www.zmbworld.co.uk/temp

jaswinder_rana 07-11-2005 03:03 PM

Looks ok to me (can be better, on the graphics side), just need touch on the following pages
1) mbworld.co.uk/temp/webhosting.htm, need to work with contrast colors
2) http://www.zmbworld.co.uk/temp/contactus.htm, again contrast
3) http://www.zmbworld.co.uk/temp/resellers.htm, contrast

so basically need contrasting colors and graphics would be beeter, not for links but as you are a company, it should show some expertise

hope this helps


All times are GMT. The time now is 11:26 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0