form action to login to neomail

miami_g

Active Member
Dec 28, 2001
26
0
301
client does not want end users into cpanel to get email

i have told him how to link directly to each box

he wants a form action with user login password on home page


anybody know the code?


thankyou
 

Marty

Well-Known Member
Oct 10, 2001
629
1
318
There are probably more elegant ways, but this will work for most people.

Create a file called login.php and put this in it (make sure there is no whilte space before any of this:

&?php
header(&location:http://$_POST[user]:$_POST[pass]@www.domain.com:2095/&);
?&

Now create the form with text field for the Username and pass it user, and also with a password field and name it pass. Have that form post to the login.php page. I haven't tried this yet, but it should work.