php - transferring a variable through different web pages in wordpress -


currently i'm building plug-in wordpress, have couple of webpages tables, filled data database. right i'm working on part click on number (memberid) should redirect page, having information table regarding number. i've tried transfering data through url, both

    ?memberid=".$item->memberid."  

and

    /memberid="$item->memberid." 

, everytime try alter url, webpages can't seem find anymore. i'm sure has whith part of code:

    add_submenu_page( null    , 'manage memberdetails'  , 'memberdetails'   , 'manage_options', 'memberdetails'       , 'memberdetails_list'   ); 

where fifth value sets url page be

    http://localhost/wordpress/wp-admin/admin.php?page=memberdetails 

so whenever try add behind url, doesn't acknowledge existance of said page anymore, resulting in redirection error.

is there way transfer variable without using url, or there way give more of dynamic url?

you using add_submenu_page wrong. first param required , can not null.

https://codex.wordpress.org/function_reference/add_submenu_page

you need fixed first page works.


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -