TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 07-06-2005, 09:52 AM   #1 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 7
Thanks: 0
suley is on a distinguished road
Default 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
suley is offline  
Reply With Quote
Old 07-06-2005, 09:55 AM   #2 (permalink)
The Visitor
 
Join Date: Jul 2005
Posts: 1
Thanks: 0
wisehosting is on a distinguished road
Default

you mean you want to login to cpanel from your webpage - but need the html / php to do this?
wisehosting is offline  
Reply With Quote
Old 07-06-2005, 09:57 AM   #3 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 7
Thanks: 0
suley is on a distinguished road
Default

yep thats right Wisehosting- html prefrable or php but aslong as the page remains a html
suley is offline  
Reply With Quote
Old 07-06-2005, 06:35 PM   #4 (permalink)
The Acquainted
 
Join Date: Mar 2005
Posts: 177
Thanks: 0
CreativeLogic is on a distinguished road
Default

Can you explain a little bit more of what you're looking to have happen?
CreativeLogic is offline  
Reply With Quote
Old 07-07-2005, 01:24 AM   #5 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 17
Thanks: 0
4fingers is on a distinguished road
Default

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.
4fingers is offline  
Reply With Quote
Old 07-07-2005, 07:47 AM   #6 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 7
Thanks: 0
suley is on a distinguished road
Default

tks im giving it a shot now, lets hope it works.
suley is offline  
Reply With Quote
Old 07-07-2005, 08:14 AM   #7 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 7
Thanks: 0
suley is on a distinguished road
Default

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
suley is offline  
Reply With Quote
Old 07-07-2005, 02:58 PM   #8 (permalink)
The Acquainted
 
Join Date: May 2005
Posts: 106
Thanks: 0
jaswinder_rana is on a distinguished road
Default

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)
__________________
---------------------------
Errors = Improved Programming.
Portfolio
Send a message via MSN to jaswinder_rana
jaswinder_rana is offline  
Reply With Quote
Old 07-07-2005, 05:19 PM   #9 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 17
Thanks: 0
4fingers is on a distinguished road
Default

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.
4fingers is offline  
Reply With Quote
Old 07-08-2005, 03:42 PM   #10 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 7
Thanks: 0
suley is on a distinguished road
Default

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
suley is offline  
Reply With Quote
Old 07-08-2005, 04:18 PM   #11 (permalink)
The Acquainted
 
Join Date: May 2005
Posts: 106
Thanks: 0
jaswinder_rana is on a distinguished road
Default

you post the code of the page, preferable as an attachment and we'll try to fix it for ya.
__________________
---------------------------
Errors = Improved Programming.
Portfolio
Send a message via MSN to jaswinder_rana
jaswinder_rana is offline  
Reply With Quote
Old 07-08-2005, 04:51 PM   #12 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 17
Thanks: 0
4fingers is on a distinguished road
Default

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.
4fingers is offline  
Reply With Quote
Old 07-08-2005, 05:32 PM   #13 (permalink)
The Acquainted
 
Join Date: Mar 2005
Posts: 177
Thanks: 0
CreativeLogic is on a distinguished road
Default

I attached a zip file with a working version of the index page. The correct fix was provided above from another member.
Attached Files
File Type: zip index.zip (2.4 KB, 82 views)
CreativeLogic is offline  
Reply With Quote
Old 07-11-2005, 09:23 AM   #14 (permalink)
The Wanderer
 
Join Date: Jul 2005
Posts: 7
Thanks: 0
suley is on a distinguished road
Default

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
suley is offline  
Reply With Quote
Old 07-11-2005, 03:03 PM   #15 (permalink)
The Acquainted
 
Join Date: May 2005
Posts: 106
Thanks: 0
jaswinder_rana is on a distinguished road
Default

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
__________________
---------------------------
Errors = Improved Programming.
Portfolio
Send a message via MSN to jaswinder_rana
jaswinder_rana is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access functions of Cpanel? jaswinder_rana Absolute Beginners 3 07-15-2005 05:53 PM
Large PHP Site List - Post additions AlEast Absolute Beginners 3 04-13-2005 05:10 PM


All times are GMT. The time now is 09:32 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design