Rediffmail login script in html

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sadanandsuvarna
    New Member
    • Mar 2011
    • 1

    #1

    Rediffmail login script in html

    Hi, I hv created following script for rediffmail login, i've saved login name and password and has saved it with .html extension so that when i click on the file it wud directly take me to inbox screen, everything works fine, but it does not submit after displaying username and passwd. It shd directly submit after i run .html file, which is not happening, (put ur username wherey i hv mention in capital letters: HERE I HAVE FED MY USERNAME and password at HERE I FED PASSWORD) pls help:

    Code:
    <html>
    <head>
    <title>Rediffmail</title>
    <style type="text/css"><!--
    .sb0{font-family:verdana;font-size:10px;text-decoration:none}
    .sb1{font-family:arial;font-size:11px;text-decoration:none}
    .sb2{font-family:arial;font-size:12px;text-decoration:none}
    .sb3{font-family:arial;font-size:13px;text-decoration:none}
    .sb4{font-family:arial;font-size:18px;text-decoration:none}
    
    .cntbttn {background: #B7E9FF;border-bottom: 2px solid #0A3E55;border-right: 2px solid #104A7B;border-left: 1px solid #FFFFFF;border-top:1px solid 
    
    #FFFFFF;color:#000000;height:20px;width=40px;font-family:arial;font-size:11px;font-weight: bold;text-decoration:none;cursor: hand}
    //-->
    </style>
    
    <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    function PasswdRemindWin()
    {
    window.open("http://login.rediff.com/cgi-bin/passwd_remind.cgi?
    
    FormName=showlogin","win1","toolbar=no,directories=no,resize=yes,menubar=no,location=no,scrollbars=yes,width=490,height=480,maximize=null,top=70,left=80");
    }
    function checkLogin()
    {
    	var usr = document.loginform.login.value;
    	if(usr == "")
    	{
    		alert("Please enter a valid User Name");
    		return false;
    	}
    	var seclogin = document.loginform.seclogin;
    	if(seclogin.checked == true)
    	{
    		document.loginform.action = "https://mail.rediff.com/cgi-bin/login.cgi";
    	}
    	else
    	{
    		document.loginform.action = "http://mail.rediff.com/cgi-bin/login.cgi";
    	}
    	return true;
    }
    </SCRIPT>
    
    </head>
    <BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0066FF" ALINK="#0066FF" VLINK="#0066FF" leftmargin="0" marginwidth="0" marginheight="0" topmargin="10">
    <FORM NAME="loginform" ACTION="http://mail.rediff.com/cgi-bin/login.cgi" METHOD=post target=_top onSubmit="return checkLogin()">
    <input type="hidden" name="FormName" value="existing"> 
    <TABLE WIDTH="686" CELLSPACING="0" CELLPADDING="0" BORDER="0" align=center>
    <TR>
    <TD WIDTH="200" VALIGN="bottom">
    &nbsp;&nbsp;<IMG SRC=/i/rediff_logo.gif HSPACE="5" VSPACE="0" BORDER="0"><BR>
    </TD>
    <TD width="486" align="right" class=sb2><BR>
    <a href="http://www.rediff.com/">Home</a>&nbsp;&nbsp;
    <TABLE cellspacing="0" cellpadding="0" border="0"><TR><TD height="3"></TD></TR></TABLE>
    </TD>
    </TR>
    
    <TR bgcolor=#B7E9FF>
    	<TD colspan=2 class=sb4 height=42>
    	&nbsp;&nbsp;&nbsp;Register for Rediffmail
    	</TD>
    </TR>
    </TABLE>
    
    <TABLE border=0 align=center>
    <TR>
    <TD align=center><BR><font size=2 color=#FF0000 face=verdana><b></b></font></TD>
    </TR>
    </TABLE>
    
    <TABLE cellspacing="0" cellpadding="0" border="0"><TR><TD height="21"></TD></TR></TABLE>
    <TABLE WIDTH="686" CELLSPACING="0" CELLPADDING="0" BORDER="0" align=center>
    <TR>
    	<TD width=368 valign=top>
    	<TABLE WIDTH=368 CELLSPACING=0 CELLPADDING=2 BORDER=0 align=center bgcolor=#ECF9FF>
    	<TR>
    	<TD>
    	<TABLE WIDTH=364 CELLSPACING=0 CELLPADDING=0 BORDER=0 align=center bgcolor=#FFFFFF>
    	<TR bgcolor=#ECF9FF>
    		<TD width=16 height=40>
    		<TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width=16></TD></TR></TABLE>
    		</TD>
    		<TD>
    		<font class=sb3>
    		<B>Existing Rediffmail user? Sign in here</B>
    		</font>
    		</TD>
    	</TR>
    	<TR>
    		<TD>
    		<TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width=16></TD></TR></TABLE>
    		</TD>
    		<TD class=sb0>
    		<TABLE cellspacing=0 cellpadding=0 border=0><TR><TD height=20></TD></TR></TABLE>
    
    
    		<TABLE WIDTH=352 CELLSPACING=0 CELLPADDING=0 BORDER=0 align=center>
    		<TR>
    			<TD width=84 align=right class=sb2 height=30>
    			User Name:&nbsp;
    			</TD>
    			<TD width=268>
    			<input type=text name=login value="HERE I FED MY USERNAME" size=18> <font class=sb3><B>@ rediffmail.com</B></font>
    			</TD>
    		</TR>
    		<TR>
    			<TD align=right class=sb2 height=30>
    			Password:&nbsp;
    			</TD>
    			<TD>
    			<input type=password name=passwd value="HERE I FED PASSWORD" size=18>
    			</TD>
    		</TR>
    		<TR>
                            <TD align=right class=sb2 height=30>
    			&nbsp;
                            </TD>
                            <TD class=sb2 align=left>
    			<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
    			if(document.location.protocol == "https:")
    			{
                            	document.write("<input type=checkbox name=seclogin checked=true> Secure Login");
    			}
    			else
    			{
    				document.write("<input type=checkbox name=seclogin checked=true> Secure Login");
    			}
    			</SCRIPT>
                            </TD>
                    </TR>
    		<TR>
    			<TD align=right class=sb2>
    			&nbsp;
    			</TD>
    			<TD class=sb0>
    			<a href="javascript:PasswdRemindWin()">Forgot Password?</a><BR><BR>
    			<input type=submit name=proceed value="GO" class=cntbttn><BR><BR><BR>
    			</TD>
    		</TR>
    		</TABLE>
    		</TD>
    	</TR>
    	</TABLE>
    	</TD>
    	</TR>
    	</TABLE>
    	</TD>
    	<TD width=318 valign=top bgcolor=#EEEEEE>
    	<table width=318 border=0 cellpadding=0 cellspacing=0>
    	<tr>
    		<td width=50 height=40 rowspan=2>
    		<TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width=50></TD></TR></TABLE>
    		</td>
    		<td width=288 class=sb3 height=40>
    		<B>Not a Rediffmail user?</B>
    		</td>
    	</tr>
    	<tr>
    		<td><BR>
    		<font class=sb4><a href="http://login.rediff.com/bn/register.cgi?FormName=user_details">Click here to sign up</a></font><BR><BR>
    		<font class=sb0>
    		Get the fast, easy to use email.<BR>It's absolutely free!<BR>All you'll have to do is fill up a form<BR>to choose username, password and<BR>other 
    
    details.
    		</font>
    		</td>
    	</tr>
    	</table>
    	</TD>
    </TR>
    </TABLE><BR><BR><BR>
    <table width=686 border=0 cellpadding=0 cellspacing=0 align=center>
    <tr>
    	<td width=686 height=3 bgcolor=#B7E9FF>
    	<TABLE cellspacing=0 cellpadding=0 border=0><TR><TD width=686 height=3></TD></TR></TABLE>
    	</td>
    </tr>
    </table>
    <!--footer begins -->		
    <table cellspacing=0 cellpadding=0 border=0 width="100%">
    
    <tr><td align=center height=65><font class="sb2 f13">Copyright &copy; 2011 Rediff.com India Limited. All rights reserved.<br><a 
    
    href="http://in.rediff.com/disclaim.htm" target="_blank">Disclaimer</a> | <a href="http://www.rediff.com/r/r/ft6" target="_blank">Privacy Policy</a></font></td></tr>
    </table>
    <!--footer ends -->
    </form>
    </body>
    </head>
    Last edited by Dormilich; Mar 21 '11, 02:58 PM. Reason: please use [CODE] [/CODE] tags when posting code
  • MusoFreak200
    New Member
    • Oct 2009
    • 96

    #2
    it looks like you have not been submitting the username and password into a database of sorts
    e.g. apache, or mysql

    Comment

    Working...