hi here is my code,
<html>
<?php
$dbhost = 'localhost';
$dbuser = '*******';
$dbpass = '*******';
$connec = mysql_connect($dbhost, $dbuser, $dbpass);
if(!$connec)
{
die('Could not connect: ' . mysql_error());
}
$sql = "UPDATE subscribers SET unsubscribed = '0' WHERE email = '$email'";
mysql_select_db('********');
if (!mysql_query($sql, $connec))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
mysql_close($connec)
?>
<form method="post" name="update" action="removal.php">
<input type="text" name="email" value="email" />
<input type="submit" name="Submit" value="update" />
</form>
</html>
WHAT I WANT : I want to show the echo message only after when i submit the form.
PROBLEM : IT shows a echo message after i refresh the page without form submit,