|
#1
|
||||
|
||||
|
Here's the HTML code for the form:
Paste in the body of your HTML script <table width="125" border="0" cellspacing="0" cellpadding="0"> <tr> <td> <form action="http://www.yourdomain.com/email.php" method="post" name="login" target="_blank"> <table width="125" border="0" cellspacing="0" cellpadding="5"> <tr> <td height="14"><font color="#000000" size="2" face="Verdana, Arial, Helvetica, sans-serif">Domain:</font></td> </tr> <tr> <td><input name="domain" type="text" id="domain" value="yourdomain.com" size="15"> </td> </tr> <tr> <td height="22"><input type="submit" name="Submit" value="log in" align="middle"> <br> </td> </tr> </table> </form></td> </tr> </table> Just edit the form action to point to your php file. Here's the PHP script (Permissions of 644), you need to create a file with extension .php Name it anything you like, but make sure to do the obvious and change your HTML page form action to point to the new file name. <? #$domain = "domain.com"; ?> <head> <title>Log In To Webmail...</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="refresh" content="1;URL=http://<? print "$domain"; ?>:2095"> </head> <body> <p><b>Hi <? echo $domain ?>!</b></p> <p><b>Please enter your username & password!</b></p><br><br> </body> You can add images inside the body if you like etc. Here's an example of this script working on Hostgator.com servers http://www.mediahosting.us/email.html This form on my site posts to http://www.mediahosting.us/email.php Let me know what you all think, if it works for you ok etc. - Kris Parker Media Hosting Last edited by mediahosting; 01-03-2005 at 11:57 PM. |
|
#2
|
|||
|
|||
|
awesome! it works. what i did was just copy the html code off the page the first link takes you to when you fill out the domain name. thanks!
|
|
#3
|
||||
|
||||
|
Really cool!
...and then it got ME thinking. Here's what I did; 1) created a folder /email in the account. 2) Placed a file that must be "index" , i.e. index.php, with your code just modified slightly for refresh to neomail in this file: [code:1:d43f46f1f2] <?php $domain = "www.yourdomain.com"; $title = "$domain Email"; ?> <head> <title>Log In To Webmail...</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <meta http-equiv="refresh" content="1;URL=http://<? print "$domain"; ?>:2095/neomail/neomail.pl"> </head> <body> <br>Welcome to the <? echo $domain ?> email system! <br> <br>Please enter your username & password!<br><br> </body> [/code:1:d43f46f1f2] This way users on the road only have to remember the following url: www.yourdomain.com/email Voila, the "welcome" appears then the login box, then after a correct login, they go straight to their neomail. --ron |
|
#4
|
|||
|
|||
|
Nice work!! I've been looking for something like this for weeks without any luck until I stumbled on it here.
Should the .php files be chmod to anything special? or not a big deal since a user needs to enter their user/password anyway. Thanks again. GameUtopia |
|
#5
|
|||
|
|||
|
looking at the scripts, i would say that they dont need chmodding to anything special, theave them as is and they should work (just my option, dont take it as the definate answer) .o0(really need to work on that confidence)0o.
-matt |
|
#6
|
||||
|
||||
|
Nah, I didn't do any chmodding. I try to keep things simple and not to complicated in case I have to hand off the responsibility. :roll:
..and Matt, you are correct. catch ya's, ron
__________________
97 Trans Am |
|
#7
|
||||
|
||||
|
I just used it, and it works smashingly.
__________________
http://www.phantasmo.com |
|
#8
|
|||
|
|||
|
Hi
I've followed all the instructions on this thread and it all seems to work except when the domain name is entered into the box and it forward to the email.php file its not coming up with the username and password box and forward the the URL: http://%3C/?%20print. please can someone advise what i am doing wrong. you can check www.makhosts.com to see what im talking about (site is not complete yet tho.) thanks Deji |
|
#9
|
||||
|
||||
|
Quote:
check the head section in your email.php. There's a line <meta http-equiv="refresh" content="1;URL=http://<? print "$domain"; ?>:2095"> this should be <meta http-equiv="refresh" content="1;URL=http://<? print "$domain"; ?>:2095"> Stef. |
|
#10
|
|||
|
|||
|
thanks a million Stef, it now work great.
cheers Deji |
![]() |
| Bookmarks |
«
Previous Thread
|
Next Thread
»
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 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 02:43 AM.









