im trying to make a popup kind of viewing profile.
like where members can click on view their ACCOUNT INFO and when they clicked on it, it will display as a popup filled with their membership information such as, avatar, username, membership status, membership expiring date, and so on...
And so what i tried to do is, make a new file named "account-info.php" and placed it over to my file directories.
then made a link somewhere on my site with this code
- Code: Select all
<a href="javascript:void(window.open('http://www.MYDOMAIN.com/wp-content/themes/MYTHEME/account-info.php','accountinfo','width=600,height=350,top=200,left=365'))">Account Info</a>
The link works fine and it pops up a new window connecting to that "account-info.php"
But the thing is, whenever I put in php codes inside that file (account-info.php), the pop up gives undefined error.
And so this is my question, how to do this? So that I can have my member's informations as a popup window from their membership and so on? Basically, how can i make php work on that new file i created? Because it seems php is not available to use in that file, or maybe its because its outside the loop? Hmm.