Go Back   HostGator Peer Support Forums > HostGator Peer Support Forums > Shared Hosting Support

Notices

Closed Thread
 
Thread Tools
  #1  
Old 05-18-2004, 07:12 PM
london london is offline
Hatchling Croc
 
Join Date: May 2004
Location: Toronto, Ontario, Canada.
Posts: 3
Default

I have one of the templates offered by hostgator.com and on the main page there are text areas for my clients to login into the CPanels. Does anyone know if there is a script that will enable me to activate that login box or am I missing something somewhere?

Thanks in advance.

London.
  #2  
Old 05-18-2004, 07:27 PM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

Havent tested this, but try using this for your form tag

<form action=http://yourdomain.com:2082/login/ method=post>

and be sure your username field is named 'user', and your password field is named 'pass'

Let me know if that works.
  #3  
Old 05-18-2004, 07:49 PM
london london is offline
Hatchling Croc
 
Join Date: May 2004
Location: Toronto, Ontario, Canada.
Posts: 3
Default

Thank you.

That almost worked!

I added my user name and password into the text areas and clicked the button and a logn prompt opened up with my username present but without the password.

Now even that would be fine if the password was present but it did seem redundant and possibly to some clients, unprofessional.

I will keep searching and if anyone comes up with an idea, hack, fix let me know.

Thanks again in advance everyone : )

London.
  #4  
Old 05-18-2004, 08:51 PM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

You sure you didnt type your password incorrectly? I just set up a test page and it works fine for me.
  #5  
Old 05-19-2004, 03:34 AM
Stef's Avatar
Stef Stef is offline
Royal Croc
 
Join Date: May 2004
Posts: 715
Default

london,

maybe this thread has some info for you: http://forum.hostgator.com/viewtopic.php?t=443

Stef.
  #6  
Old 05-19-2004, 07:04 AM
london london is offline
Hatchling Croc
 
Join Date: May 2004
Location: Toronto, Ontario, Canada.
Posts: 3
Default

Quote:
Originally Posted by Gator_Justin
You sure you didnt type your password incorrectly? I just set up a test page and it works fine for me.

Yes, this is the code that I have right now:

[code:1:9af2d9be98]<tr>
<td width="43%" class="companyname"><form action="http://my_domain.com:2082/login" method="post">
Login here:</td>
<td width="57%"> </td>
</tr>
<tr>
<td><input name="user" type="text" value="Username" size="20" maxlength="20"></td>
<td> </td>
</tr>
<tr>
<td><input name="pass" type="text" value="Password" size="20" maxlength="20"></td>
<td><a href="cpanel"><img src="images/button.jpg" width="20" height="17" border="0"></a></form></td>
</tr>[/code:1:9af2d9be98]

This time not even my user name came up. Thank you though, I'm sure I'll figure this out.

London.
  #7  
Old 05-19-2004, 07:42 AM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

Make sure to include a final '/' after the action URL.

http://yoursite.com:2082/login/

See if that makes a difference.
  #8  
Old 05-19-2004, 07:47 AM
GatorJustin's Avatar
GatorJustin GatorJustin is offline
Banned User
 
Join Date: Apr 2004
Location: Atlanta, GA
Posts: 771
Default

Oh, one other small thing I would recommend is adding a small javascript event that clears the fields before a user types. I love little things like this.

To accomplish it, add:

onFocus=this.value=''

inside both of your text input fields.
  #9  
Old 05-19-2004, 10:27 PM
jas01724 jas01724 is offline
Hatchling Croc
 
Join Date: Apr 2003
Posts: 6
Default

Are you using Internet Explorer 6 with the latest Microsoft patches? If so, a security "improvement" has been added that disallows logging into .htaccess protected pages by means other than the pop-up box.

If you use any other browser, or any version of IE 6 other than the latest update, you can still log in fine using the form embedded in the page, but if you (as I do) patch everything that Microsoft tells you to you'll still get the pop-up after you submit the form.

Good old Microsoft.
Closed Thread

Bookmarks

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Closed] front page trainiac Shared Hosting Support 2 06-04-2004 01:43 AM
[Closed] Hostgator Clients BEWARE!!!!!!!! PLEASE READ Buckshot Shared Hosting Support 2 05-18-2004 09:20 PM
Cpanel login form on index.html page? brian22 Shared Hosting Support 4 03-17-2004 04:23 AM

All times are GMT -5. The time now is 10:52 AM.