Redirect to blank php not working!

I have a simple form that when filled out and submitted should redirect to a blank php with simple html in it. If I use onAfterInsert event the data filled out doesn’t make it to the table before the redirect occurs. if the event is called AFTER INSERT why does it redirect before insert? If I use settings->navigation->exit url it redirects to an error page “Confirm Form Resubmission”. Nobody told it to refresh the form. It should just display the simple blank php! What the heck is going on?!

edit: It would help if i disabled security first. It redirects fine now with the navigation setting but I still don’t see why the AFTER INSERT doesn’t do as advertised.

Hello,

Have you tried to commit the transcation before redirecting?

http://downloads.scriptcase.com.br/downloads/v7/manual/en_us/webhelp/manual_mp/28-Macros/00-macros_sc.htm#sc_commit_trans

regards,
Bernhard Bernsmann

Probabely not, as I have ran into this issue too. But isn’t this just a simple (old) bug which should be resolved?

Actually commiting the transaction on the after insert usually solves the issue.

regards,
Bernhard Bernsmann

Yes, and actually it is documented in the helpfile this way. So it works as designed. But it’s a mistake every newbee will make. It simply is not logical. I make this error everytime I need to redir in a onafter… event and then: Ah yes, forgot to commit…