File 'a.php' contains a list of records from a MySQL table. The first column is <a href>'d to act as a link to 'b.php' where the record is presented for editing. The submit button on 'b.php' returns the visitor to itelf (b.php) where the record is updated.
b.php looks like this:
isset submit?
if yes, update the record
isset delete?
if yes delete the record
isset a record number?
if yes, get the record for editing
What I need is a way of returning to 'a.php' once the record has been updated or deleted - ie. between the issets delete and record number.
This could be achieved in two ways - an automatic goto before the check for a record number, or by unsetting the record number and jumping as a result of a 'no' for that if statement. But the method would surely be the same. I need a goto(a.php) function.
Does anyone know how this is done?