hi all
I need to make sure someone entered some data into a form i am not concerned on this particular site about hacks or malatious injection so i just need to make sure the person entered somthing into each field. i currently send the results of my form to a remote php page. here are the names of the form fields and the basic form check as far as i have gotten. my question is if blank inputs are sent as null vlaues or if they have some random vlaue.
[HTML]
<form target="mailer. php" action="post">
<input type="text" name="email">
<input type="text" name="first_nam e">
<input type="text" name="last_name ">
<input type="text" name="address">
<input type="text" name="city">
<input type="text" name="state">
<input type="text" name="zip_code" >
</form>
[/HTML]
[PHP]
if ($_POST[email] = WHAT GOES HERE || $_POST[first_name] || $_POST[last_name] || $_POST[address] || $_POST[city] || $_POST[state] || $_POST[zip_code])
{
$url= "failed.htm ";
}
[/PHP]
thanks for any and all help
I need to make sure someone entered some data into a form i am not concerned on this particular site about hacks or malatious injection so i just need to make sure the person entered somthing into each field. i currently send the results of my form to a remote php page. here are the names of the form fields and the basic form check as far as i have gotten. my question is if blank inputs are sent as null vlaues or if they have some random vlaue.
[HTML]
<form target="mailer. php" action="post">
<input type="text" name="email">
<input type="text" name="first_nam e">
<input type="text" name="last_name ">
<input type="text" name="address">
<input type="text" name="city">
<input type="text" name="state">
<input type="text" name="zip_code" >
</form>
[/HTML]
[PHP]
if ($_POST[email] = WHAT GOES HERE || $_POST[first_name] || $_POST[last_name] || $_POST[address] || $_POST[city] || $_POST[state] || $_POST[zip_code])
{
$url= "failed.htm ";
}
[/PHP]
thanks for any and all help
Comment