Friday, September 13, 2013

SENDING EMAIL (PART-1)

Example: 1


<?php

$userpassward = "abc";
echo $userpasswardenc = md5($userpassward);

?>




Example: 2


<?php

$userpassword = "alex";
echo $userpasswordenc = md5($userpassword);

?>


Example: 3


<?php

$userpassword = "abc";
$userpasswordenc = md5($userpassword);

if (md5($_POST['password'])== $userpasswordenc)
die("Correct");
else
die("incorrect");

?>

<form action='MD5_Encryption_3.php' method='POST'>
<input type='text' name='password'>
<input type='submit' value='Login'>
</form>



Example: 4


<?php

$userpassword = "abc";
$userpasswordenc = md5($userpassword);

if ($_POST['password'])
{
if (md5($_POST['password'])== $userpasswordenc)
die("Correct");
else
die("incorrect");
}
?>

<form action='MD5_Encryption_4.php' method='POST'>
<input type='text' name='password'>
<input type='submit' value='Login'>
</form>


Example: 5

<?php

$userpassword = "abc";
$userpasswordenc = md5($userpassword);

if ($_POST['password'])
{

$submittedenc = md5($_POST['password'])
if ($submittedenc== $userpasswordenc)
echo "Compared $userpasswordenc to "$submittedenc;
die("Correct");
else
die("incorrect");
}
?>

<form action='MD5_Encryption_5.php' method='POST'>
<input type='text' name='password'>
<input type='submit' value='Login'>
</form>



Example: 6


<?php
$userpassword = "abc";
$userpasswordenc = md5($userpassword);

if ($_POST['password'])
{
$submittedenc = md5($_POST['password'])
if ($submittedenc==$userpasswordenc)
{
echo "Compared $userpasswordenc to ".$submittedenc;
die("Correct");
}
else
die("incorrect");
}
?>

<form action='MD5_Encryption_5.php' method='POST'>
<input type='text' name='password'>
<input type='submit' value='Login'>
</form>


Example: 7

<?php
$userpassword = "abc";
$userpasswordenc = md5($userpassword);

if ($_POST['password'])
{
$submittedenc=md5($_POST['password'])
if ($submittedenc==$userpasswordenc)
{
echo "Compared $userpasswordenc to ".$submittedenc."<br>";
die("Correct");
}
else
die("incorrect");
}
?>

<form action='MD5_Encryption_5.php' method='POST'>
<input type='text' name='password'>
<input type='submit' value='Login'>
</form>

1 comment:

Unknown said...

thanks for this code.....