Oh, thanks, I'll take out those exits(). I thought I needed them for each expression, so that'll help.
The reason why I have several different checks is because this is an optional account edit form, where the user doesn't need to edit all their details, just the specific ones. So, I want it to run separately for each if they decide not to edit certain values.
Also, because there are different forms, I want to make sure that the submit button for each section only affects the specific form that it applies to, so if i only use:
if(isset($_POST['submit']))
for each section, how will it distinguish between which button is being pressed?
I entered a hidden field to define each form right below each submit button:
<td><input name="parse_var" type="hidden" value="form_new_name" /></td>
<td><input name="parse_var" type="hidden" value="form_new_username" /></td>
<td><input name="parse_var" type="hidden" value="form_new_email" /></td>
<td><input name="parse_var" type="hidden" value="form_new_password" /></td>
<td><input name="parse_var" type="hidden" value="form_delete_account" /></td>
So is this correct for each section?
if(isset($_POST['parse_var']) && $_POST['parse_var'] == 'form_new_name')
if(isset($_POST['parse_var']) && $_POST['parse_var'] == 'form_new_username')
PHP]if(isset($POST['parse_var']) && $POST['parse_var'] == 'form_new_email') [/code]
etc.