Announcement

Collapse
No announcement yet.

Redirect to blank php not working!

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.
    Last edited by ancr2001; 04-10-2013, 05:44 PM. Reason: I calmed down

  • #2
    Hello,

    Have you tried to commit the transcation before redirecting?

    http://downloads.scriptcase.com.br/d...c_commit_trans

    regards,
    Bernhard Bernsmann

    Comment


    • #3
      Probabely not, as I have ran into this issue too. But isn't this just a simple (old) bug which should be resolved?
      Albert Drent
      aducom software netherlands
      scriptcase partner, reseller, support and (turn-key) development
      www.scriptcase.eu / www.scriptcase.nl

      Comment


      • #4
        Actually commiting the transaction on the after insert usually solves the issue.

        regards,
        Bernhard Bernsmann

        Comment


        • #5
          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....
          Albert Drent
          aducom software netherlands
          scriptcase partner, reseller, support and (turn-key) development
          www.scriptcase.eu / www.scriptcase.nl

          Comment

          Working...
          X