Jump to content

[SOLVED] setcookie help


fonecave

Recommended Posts

I have a php page that gets information (user and pass) and posts to itself

 

i then verify the fields out of a text file here is the code!

 

where i have the line that says login successful i want to be able to set a cookie but i cant because its not behind the html tag even tho it is a php page how can i get round that with out changing the code too much as it took me 2 days to figure out the coding!

 

<?php

 

if (isset ($_POST['login']))

 

{

$username=trim($_POST['username']);

$pass=trim($_POST['pass']);

if (empty($username) || empty($pass))

{

echo '<form action="login.php" method="post"';

echo 'enctype="multipart/form-data">';

echo '<input type="text" name="username" /><br>';

echo '<br>';

echo '<input type="password" name="pass" />'; echo '<br>';

echo '       '; echo '       '; echo '  <input type="submit" ';

echo 'name="login" value="Login" />';

echo '</form>';

echo "<font color='red'>Please Enter Username and Password!</font>";

 

}

 

else

 

 

{

 

$passok = "0";

 

$file=fopen("userlogincheck21071985.txt","r") ;

     

while ( !feof($file))

{

$f_user = trim(fgets($file));

$f_password = trim(fgets($file));

if ($f_user == $username && $f_password == $pass)

{

$passok = "1";

}

}

 

 

echo '<form action="login.php" method="post"';

echo 'enctype="multipart/form-data">';

echo '<input type="text" name="username" /><br>';

echo '<br>';

echo '<input type="password" name="pass" />';

echo '<br>';

echo '       '; echo '       '; echo '  <input type="submit" ';

echo 'name="login" value="Login" />';

echo '</form>';

if ($passok =="0")

{

echo "<FONT color='red'>Ivalid Login</font>";

}

if ($passok =="1")

{

echo "<FONT color='red'>Login Successful</font>";

 

 

}

}

 

}

else

{

echo '<form action="login.php" method="post"';

echo 'enctype="multipart/form-data">';

echo '<input type="text" name="username" /><br>';

echo '<br>';

echo '<input type="password" name="pass" />';

echo '<br>';

echo '       '; echo '       '; echo '  <input type="submit" ';

echo 'name="login" value="Login" />';

echo '</form>';

}

 

 

 

 

?>

 

 

Link to comment
Share on other sites

I don't know what you mean here.  SETCOOKIE() is a PHP function.

 

where i have the line that says login successful i want to be able to set a cookie but i cant because its not behind the html tag even tho it is a php page

Link to comment
Share on other sites

i still get the same error

 

see

http://fonecave.110mb.com/login.php

 

user : hello

pass: pass

 

give it a try

 

code now reads:

 

<?php
ob_start();

if (isset ($_POST['login']))

{
$username=trim($_POST['username']);
$pass=trim($_POST['pass']);
if (empty($username) || empty($pass))
{
echo '<form action="login.php" method="post"'; 
echo 'enctype="multipart/form-data">';
echo '<input type="text" name="username" /><br>';
echo '<br>';
echo '<input type="password" name="pass" />'; echo '<br>';
echo '       '; echo '       '; echo '  <input type="submit" ';
echo 'name="login" value="Login" />';
echo '</form>';
echo "<font color='red'>Please Enter Username and Password!</font>";

}

else


{

$passok = "0";

$file=fopen("userlogincheck21071985.txt","r") ;
       
while ( !feof($file))
{
$f_user = trim(fgets($file));
$f_password = trim(fgets($file));
if ($f_user == $username && $f_password == $pass)
{
$passok = "1";
}
}


echo '<form action="login.php" method="post"'; 
echo 'enctype="multipart/form-data">';
echo '<input type="text" name="username" /><br>';
echo '<br>';
echo '<input type="password" name="pass" />'; 
echo '<br>';
echo '       '; echo '       '; echo '  <input type="submit" ';
echo 'name="login" value="Login" />';
echo '</form>';
if ($passok =="0")
{
echo "<FONT color='red'>Ivalid Login</font>";
}
if ($passok =="1")
{
echo "<FONT color='red'>Login Successful</font>";
setcookie("user", "$username", time()+3600); 


}
}

}
else
{
echo '<form action="login.php" method="post"'; 
echo 'enctype="multipart/form-data">';
echo '<input type="text" name="username" /><br>';
echo '<br>';
echo '<input type="password" name="pass" />'; 
echo '<br>';
echo '       '; echo '       '; echo '  <input type="submit" ';
echo 'name="login" value="Login" />';
echo '</form>';
}


ob_end_flush();

?>

Link to comment
Share on other sites

but that code above is just a section in a page so it will have output what it has to already by the time it reaches the ob_start function.

 

the very top of my page is like a html i dnt get it ,  the page code looks like this :

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 

<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Fonecave - Mobile Phones, Ringtones, Themes & More</title>
<meta name="GENERATOR" content="Virtual Mechanics SiteSpinner V2 270c ">
<meta name="Description" content="Get all the latest phones on the best price plans Guarenteed! We offer price match guarentees to help find you the best value! We also offer ringtones and themes. Send free sms messages from our site!Get all the latest phones on the best price plans Guarenteed! We offer price match guarentees to help find you the best value! We also offer ringtones and themes. Send free sms messages from our site!Get all the latest phones on the best price plans Guarenteed! We offer price match guarentees to help find you the best value! We also offer ringtones and themes. Send free sms messages from our site! phones, fones, phone, phone, sms, txt, text, message, messages, mesage, mesages, mobile, mobile phone, mobile phones, mobile fone, mobile fones, cheap, contract, pay as you go, payg, cheap mobiles, cheap mobile phones, interactive, mp3 tones, mp3, login, register, contact, samsung, sony, ericcson, erricson, nokia, sagem, LG, motorola, panasonic, sharp, siemans, seimans, sonyericcson, ericsson, sonyericsson, U600, N95, K850i, 6300, 6500, classic, K800i, W910i, Chocolate, KU990,  W810i, N95, 8GB,  5310, W910i, Gold, W880i, Gold, 6500, Slide,  E51, W580i, Pink, W910i, K850i, 02, tmobile, t-mobile, t mobile, orange, virgin, mobile, virgin mobile, 3, 3 mobile, fonecave, fone-cave, fone, cave, , !,">
<meta name="Keywords" content="phones, fones, phone, phone, sms, txt, text, message, messages, mesage, mesages, mobile, mobile phone, mobile phones, mobile fone, mobile fones, cheap, contract, pay as you go, payg, cheap mobiles, cheap mobile phones, interactive, mp3 tones, mp3, login, register, contact, samsung, sony, ericcson, erricson, nokia, sagem, LG, motorola, panasonic, sharp, siemans, seimans, sonyericcson, ericsson, sonyericsson, U600, N95, K850i, 6300, 6500, classic, K800i, W910i, Chocolate, KU990,  W810i, N95, 8GB,  5310, W910i, Gold, W880i, Gold, 6500, Slide,  E51, W580i, Pink, W910i, K850i, 02, tmobile, t-mobile, t mobile, orange, virgin, mobile, virgin mobile, 3, 3 mobile, fonecave, fone-cave, fone, cave, , !,">
<meta http-equiv="imagetoolbar" content="false">

<style type="text/css">
<!--
.fsx01 {font-size: 11px;}
.fsx02 {font-size: 12px;}
.fsx03 {font-size: 13px;}
.fsx04 {font-size: 15px;}
.fsx05 {font-size: 16px;}
.fsx06 {font-size: 19px;}
.fsx07 {font-size: 21px;}
.fsx08 {font-size: 24px;}
.fsx09 {font-size: 27px;}
.fsx10 {font-size: 29px;}
.fsx11 {font-size: 32px;}
.fsx12 {font-size: 35px;}
.fsx13 {font-size: 37px;}
.fsx14 {font-size: 48px;}
.fsx15 {font-size: 64px;}
.fsx16 {font-size: 96px;}
.txdec {text-decoration: none;}
#centered{position:relative;width:800px;height:100%;margin:0px auto 0 auto;text-align:left;padding-left:1px;}
#Oobj326 {position:absolute;z-index:1;visibility:visible;left:0px;top:155px;width:800px;height:447px;}
#Oobj327 {position:absolute;z-index:2;visibility:visible;left:534px;top:197px;width:257px;height:165px;}
#Oobj328 {position:absolute;z-index:3;visibility:visible;left:8px;top:192px;width:297px;height:323px;}
#Oobj329 {position:absolute;z-index:4;visibility:visible;left:3px;top:87px;width:800px;height:72px;}
#Oobj330 {position:absolute;z-index:5;visibility:visible;left:2px;top:126px;width:801px;height:54px;}
#Oobj331 {position:absolute;z-index:6;visibility:visible;left:3px;top:2px;width:801px;height:87px;}
#Oobj332 {position:absolute;z-index:7;visibility:visible;left:2px;top:2px;width:801px;height:19px;}
#Oobj333 {position:absolute;z-index:8;visibility:visible;left:12px;top:66px;width:302px;height:26px;}
#Oobj334 {position:absolute;z-index:9;visibility:visible;text-align:left;left:247px;top:85px;width:52px;height:31px;}
#Oobj335 {position:absolute;z-index:10;visibility:visible;left:649px;top:172px;width:69px;height:11px;}
#Oobj336 {position:absolute;z-index:11;visibility:visible;text-align:left;left:11px;top:2px;width:791px;height:21px;}
#Oobj337 {position:absolute;z-index:12;visibility:visible;left:801px;top:-1px;width:4px;height:605px;}
#Oobj338 {position:absolute;z-index:13;visibility:visible;left:-1px;top:-1px;width:4px;height:605px;}
#Oobj339 {position:absolute;z-index:14;visibility:visible;text-align:left;left:14px;top:153px;width:231px;height:21px;}
#Oobj340 {position:absolute;z-index:15;visibility:visible;left:725px;top:104px;width:71px;height:17px;}
#Oobj341 {position:absolute;z-index:16;visibility:visible;left:647px;top:37px;width:75px;height:86px;}
#Oobj342 {position:absolute;z-index:17;visibility:visible;left:718px;top:37px;width:38px;height:37px;}
#Oobj343 {position:absolute;z-index:18;visibility:visible;text-align:left;left:354px;top:20px;width:298px;height:69px;}
#Oobj345 {position:absolute;z-index:19;visibility:visible;text-align:left;left:773px;top:20px;width:29px;height:33px;}
#Oobj346 {position:absolute;z-index:20;visibility:visible;text-align:left;left:21px;top:198px;width:272px;height:57px;}
#Oobj347 {position:absolute;z-index:21;visibility:visible;text-align:left;left:561px;top:264px;width:218px;height:83px;}
#Oobj348 {position:absolute;z-index:22;visibility:visible;text-align:left;left:550px;top:206px;width:44px;height:23px;}
#Oobj349 {position:absolute;z-index:23;visibility:visible;left:544px;top:232px;width:161px;height:5px;}
#Oobj350 {position:absolute;z-index:24;visibility:visible;text-align:left;left:564px;top:245px;width:76px;height:18px;}
#Oobj351 {position:absolute;z-index:25;visibility:visible;text-align:left;left:565px;top:284px;width:67px;height:24px;}
#Oobj352 {position:absolute;z-index:26;visibility:visible;text-align:left;left:12px;top:175px;width:45px;height:21px;}
#Oobj353 {position:absolute;z-index:27;visibility:visible;text-align:left;left:319px;top:197px;width:220px;height:199px;}
#Oobj354 {position:absolute;z-index:28;visibility:visible;left:534px;top:391px;width:256px;height:6px;}
#Oobj355 {position:absolute;z-index:29;visibility:visible;text-align:left;left:12px;top:132px;width:239px;height:26px;}
#Oobj356 {position:absolute;z-index:30;visibility:visible;text-align:left;left:15px;top:453px;width:280px;height:50px;}
#Oobj357 {position:absolute;z-index:31;visibility:visible;text-align:left;left:318px;top:401px;width:472px;height:82px;}
#Oobj358 {position:absolute;z-index:32;visibility:visible;text-align:left;left:22px;top:262px;width:274px;height:182px;}
#Oobj247 {position:absolute;z-index:33;visibility:visible;text-align:left;left:309px;top:146px;width:484px;height:42px;}

input,textarea,select {color:#000000;font-family:'Times New Roman';font-size:12px;font-weight:normal;font-style:normal;text-decoration:none;}
.dfltt {font-family:'Times New Roman';font-size:12px;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;color:#000000;}
.dfltc {font-family:'Times New Roman';font-size:12px;font-weight:normal;font-style:normal;text-decoration:none;text-align:left;color:#000000;}
a:link {text-decoration:none;}
a:visited {text-decoration:none;}
body {margin:0px;text-align:center;height:100%;width:100%;}
-->
</style>
</head> 

<body bgcolor="#eeeff2" alink="#377dff" link="#377dff" vlink="#377dff" >

<div id="centered">
<div id="Oobj326">
<img name="Ggeo291" src="./geometry/obj326geo291shd91pg9p10.png" alt="" border = "0"  width="800" height="447"></div>

<div id="Oobj327">
<img name="Ggeo292" Align=Top src="file://D:/Website/fonecave/Pic15.png" alt="" border="0" width="257" height="165"></div>

<div id="Oobj328">
<img name="Ggeo293" src="./geometry/obj328geo293pg9p10.png" alt="" border = "0"  width="297" height="323"></div>

<div id="Oobj329">
<img name="Ggeo294" src="./geometry/obj329geo294shd92pg9p10.png" alt="" border = "0"  width="800" height="72"></div>

<div id="Oobj330">
<img name="Ggeo295" Align=Top src="file://D:/Website/fonecave/Pic41.png" alt="" border="0" width="801" height="54"></div>

<div id="Oobj331">
<img name="Ggeo296" src="./geometry/obj331geo296shd93pg9p10.png" alt="" border = "0"  width="801" height="87"></div>

<div id="Oobj332">
<img name="Ggeo297" src="./geometry/obj332geo297shd94pg9p10.png" alt="" border = "0"  width="801" height="19"></div>

<div id="Oobj333">
<img name="Ggeo298" Align=Top src="file://D:/Website/Pokerreview/Pic28.png" alt="" border="0" width="302" height="26"></div>

<div id="Oobj334">
<img name="Ggeo299" src="./geometry/obj334geo299pg9p10.png" alt="" border = "0"  width="52" height="31"></div>

<div id="Oobj335">
<img name="Ggeo254" src="./geometry/obj335geo254shd95pg9p10.png" alt="" border = "0"  width="69" height="11"></div>

<div id="Oobj336">
<a href="login.php"><font face="Times New Roman" class="fsx02" color="#c0c0c0"><B>Welcome to fonecave  > Login                                                                                                                                              Sign in   |   Register   |   fonecave 2007<br></B></font></a>
</div>

<div id="Oobj337">
<img name="Ggeo256" src="./geometry/obj337geo256shd96pg9p10.png" alt="" border = "0"  width="4" height="605"></div>

<div id="Oobj338">
<img name="Ggeo301" src="./geometry/obj338geo301shd97pg9p10.png" alt="" border = "0"  width="4" height="605"></div>

<div id="Oobj339">
<a href="login.php"><font face="Times New Roman" class="fsx02" color="#c0c0c0"><B>Sign in   |   Register   |   fonecave 2007<br></B></font></a>
</div>

<div id="Oobj340">
<img name="Ggeo259" src="./geometry/obj340geo259pg9p10.png" alt="" border = "0"  width="71" height="17"></div>

<div id="Oobj341">
<img name="Ggeo302" Align=Top src="file://D:/Website/fonecave/Pic8A.png" alt="" border="0" width="75" height="86"></div>

<div id="Oobj342">
<img name="Ggeo261" src="./geometry/obj342geo261pg9p10.png" alt="" border = "0"  width="38" height="37"></div>

<div id="Oobj343">
<div id="Ggeo262" class="dfltc">
<script type="text/javascript"><!--
google_ad_client = "pub-8373713611375511";
google_ad_width = 234;
google_ad_height = 60;
google_ad_format = "234x60_as";
google_cpa_choice = "CAEQABoIsrxegflwKKwol8_AvAE";
//-->
</script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div>
</div>

<div id="Oobj345">
<div id="Ggeo264" class="dfltc">
<a href="http://valuemobiles.at/fonecave?CTY=1&CID=3353"><img src="http://b1.perfb.com/b1.php?ID=3353&PURL=valuemobiles.at/fonecave" border="0"></a></div>
</div>

<div id="Oobj346">
<img name="Ggeo303" src="./geometry/obj346geo303pg9p10.png" alt="" border = "0"  width="272" height="57"></div>

<div id="Oobj347">
<div id="Ggeo266" class="dfltc">
<?php
ob_start();

if (isset ($_POST['login']))

{
$username=trim($_POST['username']);
$pass=trim($_POST['pass']);
if (empty($username) || empty($pass))
{
echo '<form action="login.php" method="post"'; 
echo 'enctype="multipart/form-data">';
echo '<input type="text" name="username" /><br>';
echo '<br>';
echo '<input type="password" name="pass" />'; echo '<br>';
echo '       '; echo '       '; echo '  <input type="submit" ';
echo 'name="login" value="Login" />';
echo '</form>';
echo "<font color='red'>Please Enter Username and Password!</font>";

}

else


{

$passok = "0";

$file=fopen("userlogincheck21071985.txt","r") ;
       
while ( !feof($file))
{
$f_user = trim(fgets($file));
$f_password = trim(fgets($file));
if ($f_user == $username && $f_password == $pass)
{
$passok = "1";
}
}


echo '<form action="login.php" method="post"'; 
echo 'enctype="multipart/form-data">';
echo '<input type="text" name="username" /><br>';
echo '<br>';
echo '<input type="password" name="pass" />'; 
echo '<br>';
echo '       '; echo '       '; echo '  <input type="submit" ';
echo 'name="login" value="Login" />';
echo '</form>';
if ($passok =="0")
{
echo "<FONT color='red'>Ivalid Login</font>";
}
if ($passok =="1")
{
echo "<FONT color='red'>Login Successful</font>";
setcookie("user", "$username", time()+3600); 


}
}

}
else
{
echo '<form action="login.php" method="post"'; 
echo 'enctype="multipart/form-data">';
echo '<input type="text" name="username" /><br>';
echo '<br>';
echo '<input type="password" name="pass" />'; 
echo '<br>';
echo '       '; echo '       '; echo '  <input type="submit" ';
echo 'name="login" value="Login" />';
echo '</form>';
}


ob_end_flush();

?></div>
</div>

<div id="Oobj348">
<img name="Ggeo267" src="./geometry/obj348geo267pg9p10.png" alt="" border = "0"  width="44" height="23"></div>

<div id="Oobj349">
<img name="Ggeo304" src="./geometry/obj349geo304pg9p10.png" alt="" border = "0"  width="161" height="5"></div>

<div id="Oobj350">
<div id="Ggeo269" class="dfltt">
<font face="Bookman Old Style" class="fsx03" color="#004080">Username<br></font></div>
</div>

<div id="Oobj351">
<div id="Ggeo305" class="dfltt">
<font face="Bookman Old Style" class="fsx03" color="#004080">Password<br></font></div>
</div>

<div id="Oobj352">
<div id="Ggeo306" class="dfltt">
<font face="Century Gothic" class="fsx03"><a href="http://fonecave.110mb.com/logout.php" class="txdec"><font class="txdec">logout</font></a><br></font></div>
</div>

<div id="Oobj353">
<div id="Ggeo307" class="dfltc">
<a href="http://3mobileshop.at/fonecave?CTY=1&CID=6574"><img src="http://b1.perfb.com/b1.php?ID=6574&PURL=3mobileshop.at/fonecave" border="0"></a></div>
</div>

<div id="Oobj354">
<img name="Ggeo308" src="./geometry/obj354geo308pg9p10.png" alt="" border = "0"  width="256" height="6"></div>

<div id="Oobj355">
<div id="Ggeo309" class="dfltc">
<script src="getcookie.php"> </script>
</div>
</div>

<div id="Oobj356">
<div id="Ggeo310" class="dfltt">
<div align="center"><font face="Arial Narrow" class="fsx01" color="#c0c0c0">By clicking register you agree that you accept our terms and conditions and will receive regular newsletters from fonecave. We will not pass on your personal information.<br></font></div>
</div>
</div>

<div id="Oobj357">
<div id="Ggeo311" class="dfltc">
<script src="getcookielarge.php"> </script>
</div>
</div>

<div id="Oobj358">
<div id="Ggeo312" class="dfltc">
<?php
if (isset ($_POST['submit']))

{
$name=$_POST["name"];
$address=$_POST["address"];
$password=$_POST["password"];


if(empty($name) || empty($address) || empty($password))
{
echo "<font color='red'>              Please Enter name, email and password</font>";

echo '<form method="POST" action="http://fonecave.110mb.com/login.php"';
echo ' enctype="multipart/form-data">';
echo '                     Name:<br>';
echo '                     <input type="text" name="name" size="20"><br>';
echo '                     Address:<br>';
echo '                     <input type="text" name="address" size="20"><br>';
echo '                     Password:<br>';
echo '                     <input type="password" name="password" size="20"><br>';
echo '                     <input type="submit" name="submit" value="Submit">';
echo '</form>';

die;
}
//darkfreaks email checker
if (!preg_match("/^(.+)@[a-zA-Z0-9-]+\.[a-zA-Z0-9.]+$/si", $address))
{

echo '<form method="POST" action="http://fonecave.110mb.com/login.php"';
echo ' enctype="multipart/form-data">';
echo '                     Name:<br>';
echo '                     <input type="text" name="name" size="20"><br>';
echo "                     <font color='red'>Error, email not valid<br></font>";
echo '                     Address:<br>';
echo '                     <input type="text" name="address" size="20"><br>';
echo '                     Password:<br>';
echo '                     <input type="password" name="password" size="20"><br>';
echo '                     <input type="submit" name="submit" value="Submit">';
echo '</form>';

die;
}

$namelen=strlen($name);
if ($namelen<5)
{
echo "   <font color='red'>Error, name entered is under 5 characters long.</font>";

echo '<form method="POST" action="http://fonecave.110mb.com/login.php"';
echo ' enctype="multipart/form-data">';
echo '                     Name:<br>';
echo '                     <input type="text" name="name" size="20"><br>';
echo '                     Address:<br>';
echo '                     <input type="text" name="address" size="20"><br>';
echo '                     Password:<br>';
echo '                     <input type="password" name="password" size="20"><br>';
echo '                     <input type="submit" name="submit" value="Submit">';
echo '</form>';

die;
}



$passwordlen=strlen($password);
if ($passwordlen<5)
{

echo '<form method="POST" action="http://fonecave.110mb.com/login.php"';
echo ' enctype="multipart/form-data">';
echo '                     Name:<br>';
echo '                     <input type="text" name="name" size="20"><br>';
echo '                     Address:<br>';
echo '                     <input type="text" name="address" size="20"><br>';
echo "       <font color='red'>Error, password entered is under 5 characters long<br></font>";
echo '                     Password:<br>';
echo '                     <input type="password" name="password" size="20"><br>';
echo '                     <input type="submit" name="submit" value="Submit">';
echo '</form>';

die;
}

$efile=fopen("kdiiidfonecaveprivregistrations2107.txt","a+") ;
if ($efile)
{
$inuse = false;
while ( !feof($efile) && !$inuse)
{
$f_name = trim(fgets($efile));
$f_address = trim(fgets($efile));

if($f_name == $name)
{

echo '<form method="POST" action="http://fonecave.110mb.com/login.php"';
echo ' enctype="multipart/form-data">';
echo "                <font color='red'>user '$name' is already in use <br></font>";
echo '                     Name:<br>';
echo '                     <input type="text" name="name" size="20"><br>';
echo '                     Address:<br>';
echo '                     <input type="text" name="address" size="20"><br>';
echo '                     Password:<br>';
echo '                     <input type="password" name="password" size="20"><br>';
echo '                     <input type="submit" name="submit" value="Submit">';
echo '</form>';

die;
$inuse = true;
}
if($f_address == $address)
{

echo '<form method="POST" action="http://fonecave.110mb.com/login.php"';
echo ' enctype="multipart/form-data">';
echo '                     Name:<br>';
echo '                     <input type="text" name="name" size="20"><br>';
echo "  <font color='red'>Email '$address' is already in use<br></font>";
echo '                     Address:<br>';
echo '                     <input type="text" name="address" size="20"><br>';
echo '                     Password:<br>';
echo '                     <input type="password" name="password" size="20"><br>';
echo '                     <input type="submit" name="submit" value="Submit">';
echo '</form>';
die;
$inuse = true;
}
}
if(!$inuse)
{
fwrite ($efile, $name . "\n");
fwrite ($efile, $address . "\n");
fwrite ($efile, $password. "\n");
echo"<centre><font color='red'><br><br>Registration Succesful, Thank you $name <br><br><br></font>";
echo"<centre><B>You will be one of the first to recieve all of our           		amazing offers!<br></B>" ;
echo "<centre><B>You will recieve your username and password soon, 		Check your inbox.</B>" ;
}
fclose($efile);
}















}
else{
echo '<form method="POST" action="http://fonecave.110mb.com/login.php"';
echo ' enctype="multipart/form-data">';
echo '<br>                     Name:<br>';
echo '                     <input type="text" name="name" size="20"><br>';
echo '                     Address:<br>';
echo '                     <input type="text" name="address" size="20"><br>';
echo '                     Password:<br>';
echo '                     <input type="password" name="password" size="20"><br>';
echo '                     <input type="submit" name="submit" value="Submit">';
echo '</form>';
}

?> 
</div>
</div>

<div id="Oobj247">
<div id="Ggeo220" class="dfltt">
<font face="Century Gothic" class="fsx04" color="#377dff"><B><a href="homepage.html" class="txdec"><font class="txdec">Home</font></a>      <a href="phones.html" class="txdec"><font class="txdec">Phones</font></a>      <a href="tones.html" class="txdec"><font class="txdec">Tones</font></a>      <a href="themes.html" class="txdec"><font class="txdec">Themes</font></a>      <a href="sms.html" class="txdec"><font class="txdec">SMS</font></a>         <a href="login.php" class="txdec"><font class="txdec">Login</font></a>      <a href="support.html" class="txdec"><font class="txdec">Support<br>
</font></a><br></B></font></div>
</div>


</div>
</body> 

<head>	<!--used for VM preview mode only -->
<meta http-equiv="Expires" content="-1">
</head>	<!--used for VM preview mode only -->
</html> 

Link to comment
Share on other sites

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.