WordPress.org

Support

Support » Plugins and Hacks » [Plugin: TDO Mini Forms] redirect with javascript:history.go(-1)”

[Plugin: TDO Mini Forms] redirect with javascript:history.go(-1)”

  • is there a way to redirect the user after they had submit a post to where he came from?
    like Go back only automatic.
    cheers wp-crowd

Viewing 2 replies - 1 through 2 (of 2 total)
  • Yes you could.

    If you use the Text widget to add a new field to the form that contains the URL they came from. The Text widget can execute PHP so you can grab it from $_SERVER[‘HTTP_REFERER’].

    Then use an Append to content widget to store it in a Custom Field on the post. (Also supports php).

    Then in “messages” for the form, modify the message for thanking the user for submitting a post with some javascript that redirects to the contents of the custom field (again you can use PHP in any of the customisable/hackable messages).

    holaaaa, thank you – i try my best 😉

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: TDO Mini Forms] redirect with javascript:history.go(-1)”’ is closed to new replies.
Skip to toolbar