Hi,
I have a HTML form to input the values. On clicking the submit button, I would like to do the following things:
1. Validate the input data
2.upon validating on success, insert the data to postgresql database table
3. Take the control to a different page to show the user all the inputted information and continue further
Since validation should be done on the same file where I have the form . so in the form post I need to have
<FORM ACTION="<?=$_SERVER['PHP_SELF']?>" METHOD="POST" name="registration">
In this case how can I call a different page on successfully inserting the values to table??
Without doing this, I can't continue any further. Any help as early as possible will save me!!