Posted on 2003-02-20
How to refresh a self submitted form in order to up to date array of records in the same form ?
My form displays a list of records provided by PHP/MySQL select query.
Through this form, user can then enter an ID of record he wants to delete and then submit form to itself where there's a PHP/MySQL delete query.
It works fine but once submit button is pressed the array of course is not updated.
redisplay the page.
But where to put it ? If I put this JS command at the end of PHP statement,it's in fact inserted at the beginning of the resulting html page and of course doesn't work.
Is there a solution ?