RE: [PHP] New to PHP- Form Validation Logic/Design Question

2002-06-01 Thread John Holmes
if($REQUEST_METHOD == "post") { //do validation of data if($validated == "yes") { //do queries } else { echo "not validated"; include("form.html"); } } else {include("form.html");} Maybe that'll work. I'm trying to follow your logic. That will check for the request met

RE: [PHP] New to PHP- Form Validation Logic/Design Question

2002-06-01 Thread David Freeman
> I included a pseudocode form of my logic here & my actual code below. A suggestion in similar pseudo code. "top of page" "set a flag to display form" If (form submitted) { "validate entered data" if (data is correctly validated) { "enter data into database" if (databas