Client Login

Code:
    <form name='go' method='post' action='http://www.example.com:2222/CMD_LOGIN'>
	Username: <input type='text' name='username'>
	Password: <input type='password' name='password'>
   	<input type='hidden' name='referer' value='/'>
	<input name="FAIL_URL" type="hidden" value="http://www.example.com/login.html">
	<input name="LOGOUT_URL" type="hidden" value="http://www.example.com">
	<input type='submit' name='submit' value='Login'>
    </form>

This is a form similar to the one I am currently using. Replace www.example.com with your URL. Also login.html in the example above is just that, an example, point that to where your login form is on your site.

Regards,
Onno Vrijburg
 
Last edited:
Alright, i'm having an issue making a 'login hub', so I don't have to create a form for every single service I have, one of which being DA.

http://www.sharpnet.net/

If you select the DirectAdmin service, it tries to login to the CMD_LOGIN, but it just goes back to that page, just wondering if i am doing something wrong, or does it have some sort of referrer tracking, or another variable that I forgot to include, btw i'm using $_REQUEST not $_POST because i'm doing it through a handwritten php login redirector.

If you guys need to see my code, i'll be happy to provide it.
 
Nevermind, silly me I took out the submit button and everything started working :)
 
zach said:
If you guys need to see my code, i'll be happy to provide it.

Would you mind sharing your code? Many people can learn from it.

Regards,
 
Good to see you back on the Forum, Onno. I hope you had a great vacation :p .

Jon Stacey is right and has posted a link to some good code, but this, with the dropdown box, is a great idea.

So I also hope you'll share :) .

Jeff
 
Would anyone still be interested in sharing some code to do this?? I have been wanting to do it for sometime.

I'm can't code so it's beyond me!

Cheers
Nick
 
Back
Top