Maniac199 Posted May 9, 2007 Share Posted May 9, 2007 I have looked around the forums and tried figureing this out myself but it does not seem to be working. I have one login form for 3 different control panels. The one for modernbill and hsphere is working fine but tcadmin keeps dumping me to the login screen instead of logging them in. What I am doing is having the form post to a php script that takes the data and converts it into a command line link, it then forwards the person to that link. here is the code: <?php $username = $_REQUEST['username']; $password = $_REQUEST['password']; $panel = $_REQUEST['cp']; if($panel == "cp") $address = "http://tca.progamerhosting.com/Templates/Default/login.aspx?USERID=$username&PASSWORD=$password"; else if($panel == "billing") $address = "https://modernbill.progamerhosting.com/index.php?op=login&submit=submit&username=$username&password=$password"; else if($panel == "web") $address = "https://cp.progamerhosting.com:8443/psoft/servlet/psoft.hsphere.CP?action=login&ftemplate=design/login.html&login=$username&password=$password"; else $address = "http://www.progamerhosting.com"; ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="refresh" content="0;url=<?php echo $address; ?>"> <title>Welcome to Pro Gamer Hosting Inc.</title> </head> <body> <div align="center"> <p>Processing login please wait.</p> <p>If you do not get automatically logged in please click <a href="<?php echo $address; ?>">here</a> </p> </div> </body> </html> Thanks for the help. Link to comment Share on other sites More sharing options...
kalyse Posted May 10, 2007 Share Posted May 10, 2007 I dont understand either by your description or your code what you are trying to do. Link to comment Share on other sites More sharing options...
swish Posted May 10, 2007 Share Posted May 10, 2007 I assume your trying to do a "triple" login where the customer enters the user/pass in the box and selects one panel to login to from a dropdown Am i correct? Link to comment Share on other sites More sharing options...
ECF Posted May 10, 2007 Share Posted May 10, 2007 http://esupport.tcadmin.com/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=14&nav=0,3 Link to comment Share on other sites More sharing options...
Maniac199 Posted May 10, 2007 Author Share Posted May 10, 2007 Correct. I have a dropdown menu that determines what panel they want to log into. You can pass information to a page via the command line using the ?variable=value&variable=value The other 2 panels work fine. To see more of what I am talking about check out our testing site: http://test.progamerhosting.com The member area at the top. Basically here is what the code does: 1. Collects data from the form that the user entered and stores it in variables. 2. Determines what panel the user was trying to log into and formulates a URL that will pass the necessary data to the login page. 3. loads a basic HTML page with a redirect to the formulated address stated above. The only thing that I can think of is that asp does not support the method used to transfer information via the URL but am pretty sure thats not it. Thanks for the help again. Link to comment Share on other sites More sharing options...
swish Posted May 10, 2007 Share Posted May 10, 2007 We are doing this successully with tcadmin along with several other panels. You can contact me on MSN if you have questions. support [@t] clanbaselive.com Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.