WordPress.org

Ready to get started?Download WordPress

Forums

Posting form in plugin (3 posts)

  1. chrrogne
    Member
    Posted 4 years ago #

    I have made a small plugin, which saves some data in the db.

    Everything is fine, except from that I am redirected to an blank page after submitting.

    My form header looks like this :

    <form name="insert_form" action="<?php bloginfo('url'); ?>/wp-content/plugins/write-to-db/process.php" method="post">

    I have tried with action=<?$_server[_SELF];?> but without success.

    Hope someone can help me.

  2. alieneila
    Member
    Posted 4 years ago #

    I usually leave the action blank so it posts to itself. action=""

  3. chrrogne
    Member
    Posted 4 years ago #

    Then it return's to wp-admin/admin.php?page=write-to-database-options, and I got File Not Found

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.