wordpress - php reading posted arrays -
This is probably a simple question, but I have tried nothing without doing anything:
Customizing an opensource WordPress plugin when I post on my customized PHP file and world php =) var_dump () on the
$ _ POST variable, I get the following: < / P>
array (7) {["Hellomail"] => Array (3) {["email"] = & gt; Array (7) {["subject"] = & gt; String (4) "ASDA" ["from_name"] = & gt; String (14) "Myplugin" ["se_mail"] = & gt; String (12) "myplugin@myplugin.com" ["replyto_name"] = & gt; String (14) "Test" ["replyto_email"] = & gt; String (12) "myplugin@myplugin.com" ["Param"] = & gt; Array (1) {["schedule"] = & gt; Array (2) {["day"] = & gt; String (10) "2013/03/21" ["Time"] = & gt; String (8) "00:00:00"}} ["email_id"] => String (2) "25"} ["campaign_list"] = & gt; Array (1) {["list_id"] = & gt; Array (1) {[0] = & gt; String (1) "4"}} ["Campaign"] = & gt; Array (1) {["campaign_id"] = & gt; String (2) "24"}} ["receiver-preview"] = & gt; String (10) "myplugin@myplugin.com" ["_wpnonce"] = & gt; String (10) "999938595d" ["_wp_http_referer"] = & gt; String (66) "/ wp-admin / admin.php? Page = testpage & action = editDetails & amp; id = 25" ["action"] = & gt; String (8) "savelast" ["roll_redir"] = & gt; String (0) "" ["Submit"] = & gt; What I want
["campaign_id"] and
["list_id"] string (6) "Senden"} I do not really know how to get these values, is there an easy way to reach them?
echo $ _POST ["hellomail" ] ["Campaign_list"] ["list_id"]; // ["hellomail"] ["campaign_list"] ["list_id"] [0]; to resize the array to $ _POST; ["Hellomail"] ["campaign"] ["campaign_id"] to get the first echo $ _POST;
Comments
Post a Comment