this is my form code :
<form name="input" action="index.php" method="post">
<input type="text" name="email" id="email" value="Subscribe to Our News" onclick="value=''"/>
<input type="submit" value="Sign up" id="submit"/>
</form>
This is my post event code in the same page index.php
if (isset($_POST['submit']))
{
$email = $_POST['email'];
echo $email;
$sql = mysql_query("INSERT INTO subscribe (email) VALUES ('$email')");
if($sql){
echo 'True';
}else{
echo 'false';
}
}
I don't get the reply back from the click event! pls help me!