• Hi!

    I hope some one could help me this problem i got.
    I hav med a plugin that sends and deletes information to and from a sql server all within the same php page. the “add” form works as it should and there is no problem there, in that form I am leaving the action=”” empty to send it to the same page.

    but in my “delete” form i need to add the ” ?id=’.$row[id].’ ” to get wich ID to delete but if i just add that to the action=”” field it directs to wp-admin/options-general.php?id=’.$row[id].’ wich is incorrect as it is not directing to the plugin page like the “add” form does.

    how can i get it to add the line of code to the correct ” php_self ” site wich is /options-general.php?page=plugin_name.php ?

Viewing 1 replies (of 1 total)
  • If you’re editing or deleting and you need to pass the ID you should do it as a hidden field. That way you’ll have it on the form with no need to pass it through the URL and you won’t have to worry about these problems.

Viewing 1 replies (of 1 total)
  • The topic ‘php_self problem’ is closed to new replies.