Jump to content

Trying to capture form (post) activity


twhiting9275

Recommended Posts

So, a pretty basic hook here, trying to capture form (or post) activity.

Example:
Login failure


<?php
add_hook('ClientAreaPage', 1, function($vars) {

print_r($_POST);
die();  
});



The ultimate goal is to get the output on those fields, put them into a smarty variable (to deal with later), and then move from there.

The problem? Even though this code should print out the post field, and does in every other php form I've worked with (pretty simple really), it fails here, just simply spits out

Array ( ) 

No information on the array (I know it should be an array), what it is, or the information in the array, just

 Array ( ) 

This is likely something incredibly stupid that I'm missing, one of those 'you need a second pair of eyes' things, but what the ************ am I missing here?

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated