• Hi,

    i want to send form data from “boxes.php” in my script including a form like:

    http://pastebin.com/f7af77e65

    to the same page “boxes.php” and by doing so passing the variables send by the mentionned form to “boxes.php”, to write them to a db (custom table, not wordpress options).

    This whole thing is done by an if statment which differs between modes and if mode insert is set, the passed variables are written to the db. (see code here: View PHP Code

    Unfortunately i can’t get it to work, the variables are not passed, even if an change the mode trigger “insert” into a get variable, an set the form action to action=”wp_siteurl…etc/admin.php?page=boxes&md=insert” (See code line 22)

    Is there any possiblity to pass these $_POST vars by form to any admin page in wp admin area, to feed any script with them?

    <form action=\"".get_bloginfo(siteurl)."/wp-admin/admin.php\" method=\"post\">
    
    <input type=\"hidden\" name=\"page\" value=\"boxes\">
    
    ...

    and

    <form action=\"".get_bloginfo(siteurl)."/wp-admin/admin.php?page=boxes&md=insert\" method=\"post\">

    None of both seems to work for me.

    Please help!

The topic ‘Admin area send form data via method “post” to custom admin pages’ is closed to new replies.