a white line is surrounding the form... how do i get rid of it! i cant find it in the code...
<?php
/* -------------------------------------------------------------------
Script written by Adam Khoury @ www.developphp.com
January 1, 2010
Please retain this credit when displaying this code online
---------------------------------------------------------------------- */
$name = "";
$email = "";
$msg_to_user = "";
if ($_POST['name'] != "") {
include_once "connect_to_mysql.php";
// Be sure to filter this data to deter SQL injection, filter before querying database
$name = $_POST['name'];
$email = $_POST['email'];
$sql = mysql_query("SELECT * FROM preorder WHERE email='$email'");
$numRows = mysql_num_rows($sql);
if (!$email) {
$msg_to_user = '<br /><br /><h4><font color="FFFFFF">Please type an email address ' . $name . '.</font></h4>';
} else if ($numRows > 0) {
$msg_to_user = '<br /><br /><h4><font color="FFFFFF">' . $email . ' is already in the system.</font></h4>';
} else {
$sql_insert = mysql_query("INSERT INTO preorder (name, email, dateTime)
VALUES('$name','$email',now() )") or die (mysql_error());
$msg_to_user = '<br /><br /><h4><font color="FFFFFF">Thank you ' . $name . ', You will receive an email when the book is available for you to purchase</font></h4>';
$name = "";
$email = "";
}
}
?>
<html>
<head>
<title>preorder</title>
</head>
<body>
<form style="width:250px;" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<fieldset style="text-align:center; padding:24px;">
<legend><span style="color: rgb(255, 255, 255);">Pre-Order Now!</legend>
<br />
<span style="color: rgb(255, 255, 255);">Full Name:<br />
<input name="name" type="text" maxlength="36" value="<?php echo $name; ?>" /><br />
Email:<br />
<input name="email" type="text" maxlength="36" value="<?php echo $email; ?>" /><br /><br />
<input name="mySubmitBtn" type="submit" value="Submit">
<?php echo $msg_to_user; ?>
</fieldset>
</form>
</body>
</html>