while executing my code some times a warning message comes like use of undefined variable even if the variable name is being used properly in the form field.
<form method="post" id="" action"">
<input type="text" name="name" />
<input type="submit" name="submit" value="submit">
</form>
$name=$_POST['name'];
even if the name is used in the form field warning message comes and i had to put @ in front of it
if(isset($_POST['submit']))
{
@$name=$_POST['name'];
}
why is is so can anyone help me out with it
@operator in PHP supresses warnings. See the manual=sign inaction""so that won't work.