View Single Post
Old 10-28-2021, 06:54 PM  
dcortez
DINO CORTEZ™
 
dcortez's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Vancouver Island
Posts: 2,145
How about this...

Your page with the form, on submit, executes a PHP script:

record_and_go.php

You pass whatever data you need for saving, AND the target URL.

The PHP script does whatever DB validation/update you need, and returns an tiny HTML shell that contains only a Javascript snippet that immediately sets the window location (page url) to the target page from the last form.

That will cause the target page to be loaded when the JS is executed (on form load).

??
dcortez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote