Hi everyone
I am facing a little issue please help me in this regards
I have created a form with validation all the validation fields are working fine but in the end i am facing that after validating all the fields should be insert into database but for the test i have just placed to display sucess message but its reloading the form but i want if every thing is fine it should create a session first then submit all values into database and then redirect to the sucess page and display the submitted values with thanks message. i search over the internet but nothing works for me please help me in this here is my code
if((strlen($valid_name)>0) && (strlen($valid_email)>0) && strlen($valid_gender>0) && strlen($dob>0) && strlen(valid_weight>0) && strlen(valid_height>0) && strlen($valid_bloodgrpsection>0) && strlen($valid_phonenum>0) && strlen($valid_mobilenum>0 ) && strlen($valid_address>0) && strlen($valid_country>0) && strlen($valid_state>0) && strlen($valid_city>0) && strlen(valid_privacysec>0))
{
echo "Thanks";
}
else
{
}