• I have a form which opens up a php page that I made. The script saves the $user_identity and $page_id to a database I made. My problem is that it’s not grabbing the variables.

    I would assume it’s because they’re not set in this php script I made.

    because if I copy the code in the script into the wordpress template, then it saves the data to the database, but it does it every time the page loads… which isn’t what I want.

    How would I grab $user_identity and $page_id in a php page that I made?

    would i just include the header inside my custom page?
    how is every page inside wordpress able to grab the data, but my custom page is not able to?

  • The topic ‘grab article id and user id from cookie? session?’ is closed to new replies.