Hi Mac,
I just would like to know more about session variables etc. as in, what is the best method to use when? Let me explain what I want to do.
If I enter information on "ADD" student details and press "ADD" button, then I go to a "COMMIT" page where I verify the user input and if successful, I proceed to add the record. If the user has made a mistake, I send them back to the input page and get them to correct their error.
1. Is it a good practice to set session variables of the user input fields so that the user does not need to re-enter the information? or
2. Is it better practice to send the input values back using href $_GET method? or, very different appraoch,
3. Should I be verifying input already on input screen before going to the commit page?
With the first method I send the user back to index.php once the add has taken place where I use session_destroy and session_unset at the top of the page to release those session variables, which works perfectly fine. I do realise that if I had not hard coded user login info in the config file, this method would no be ideal?
Hope I am making sence?
Regards
Stephanie