CP Login on Reseller Site

OJM

Perch
I'm sure I read how to do this somewhere, but I can't find it...

What I'd like to do is have a small form on my reseller site, allowing people to login to their CP from there, however I can't get it to post the details correctly.

Basically, to start with, I have;

Code:
  <form id="cp" name="cp" method="post" action="">
   <img src="images/username.png" width="62" height="16" alt="Username" /><br />
   <div align="center"><input name="cp_username" type="text" id="cp_username" size="42" class="textfield" /></div>
   <img src="images/password.png" width="62" height="16" alt="Password" /><br />
   <div align="center"><input name="cp_password" type="password" id="cp_password" size="42" class="textfield" /></div>
   <br /><div align="right"><input name="cp_submit" type="submit" value="Login" class="submit" />&nbsp;&nbsp;</div>
  </form>

If anyone could point me in the right direction, that would be great.

I'd also like the same kind of form to login to the Helpdesk, so if you have any ideas on that too please...

Thanks in advance!
 
Try this code: (replace YOURDOMAIN in the post action with your service domain)

Code:
<table border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#000000" bgcolor="#CCCCCC">
                          <tr>
							<td>
						<form method="POST" name="cplogin" action="http://cp.YOURDOMAIN.com/psoft/servlet/psoft.hsphere.CP">
						        <table width="350" border="0" align="center" cellpadding="2" cellspacing="0">
                                  <tr bgcolor="#333333"> 
                                    <td colspan="2"> <div align="center"><font color="#FFFFFF" face="Arial"><b>Hosting 
                                        Control Panel Access</b></font></div></td>
                                  </tr>
                                  <tr> 
                                    <td width="138">&nbsp;</td>
                                    <td width="204">&nbsp;</td>
                                  </tr>
                                  <tr> 
                                    <td><div align="right"><font color="#333333"><b><font size="2" face="Arial">Username:</font></b></font></div></td>
                                    <td><input name="login" type="text" id="login" size="30"></td>
                                  </tr>
                                  <tr> 
                                    <td><div align="right"><font color="#333333"><b><font size="2" face="Arial">Password:</font></b></font></div></td>
                                    <td><input name="password" type="password" id="password" size="30"></td>
                                  </tr>
                                  <tr> 
                                    <td>&nbsp;</td>
                                    <td><input type="submit" name="Submit" value="Log In"></td>
                                  </tr>
                                </table>
							  <input type="hidden" name="ftemplate" value="design/login.html">
							  <input type="hidden" name="action" value="login">
							  </form>
					        </td>
						  </tr>
						</table>
 
Back
Top