I am using Wordpress for my clients to log into the site, put data in a customized table and save it in a database table. Through the code “example” that I put in funtions.php theme I can return my email at the top of the screen. Code below.
$ current_user = wp_get_current_user ();
$ logado1 = $ current_user-> user_email;
echo $ logged1;
however through a new blank page I can put the HTML to make it work correctly, including with the css via plugin. But I can't include the php on the page is to retrieve the data from the $ logado1 variable contained in theme / funtions.php. Well, I need to retrieve the data from “$ logado1 email”, and forward it to a next php referenced in.
<form action=" http://localhost/newphp.php" method="post">.
do the treatment and save it in a new table in the “registration” database.
<div class = "divsearch">
<form action=" http://localhost/newphp.php" method="post">
<label class = "textout"> <b> Port 1 </b> </label>
<input type = "text" class = "box1">
<label class = "textout"> <b> Port 2 </b> </label>
<input type = "text" class = "box1">
</form>
<button type = "submit" class = "buttonacept1"> Save </button>
</div>
Does anyone have any solution for this problem ?.