File size: 985B
<?php include 'head.php'; if($_GET["action"]=="get") {
if($_POST["his"]==""){ echo '<center>Error, his name left blank please go back and fix it.</center>'; include 'foot.php'; exit(); } if($_POST["her"]==""){ echo '<center>Error, her name left blank please go back and fix it.</center>';
include 'foot.php'; exit(); }
} $action = $_GET["action"];
if($action==""){
echo '<hr></hr><br/><form action="love.php?action=get" method="post"><center><img src="img/150.gif"/><br/>His name<br/>
<input name="his"/><br/>+<br/>Her name<br/><input name="her"/><br/><input type="submit" value="check"/></form>'; }
else if($action=="get") {$rand = rand(0,100); $rand2 = rand(0,100); $_POST["his"] = str_replace($filter,'*',$_POST["his"]);
$_POST["her"] = str_replace($filter,'*',$_POST["her"]);
echo '<center><img src="img/150.gif"/><br/>'.$_POST["his"].' loves her '.$rand.'% while '.$_POST["her"].' loves him '.$rand2.'% :)<br/><a href="love.php">Try again...</a><center>'; }
include 'foot.php';