WordPress.org

Ready to get started?Download WordPress

Forums

plugin form submission question (1 post)

  1. davidk11
    Member
    Posted 4 years ago #

    I have a shortcode display a form on a page. How do I setup the action statement in the form so that it calls the same page? I have found an argument - $_SERVER['PHP_SELF'] - but this tends to simply load the mainpage of the blog instead of reloading the same page.

    I have it set to work that it loads the data into the global $_POST array and so it should auto populate the rest when it recalls the page, but I am unsure how to get it to actually move back to itself. Is there a constant already set that I can use to do this??

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic