Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

required fields in php - how do I?

I will write a script that outputs a form which submits the data back to that same script.

The meat of the script is usually of the form:

if (array_key_exists('some_form_field', $_POST))
{
if (check_for_valid_input() == TRUE)
{
send_email();
show_user_confirmation();
}
else
{
show_form_with_userdata_and_errors();
}
}
else
{
show_blank_form();
}

Want the best answers? Ask the best questions: TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top