-
☆ A M B ☆
- 24,524 Posts
I did something similar; I use a snippet for the &eformOnBeforeMailSent event to load the submitter’s server info into the $fields array. Then I can just use the placeholders to add these to my report chunk.
<?php
function getServer( &$fields ){
// remote_addr
$fields['remote_addr']=$_SERVER['REMOTE_ADDR'];
$fields['remote_host']=$_SERVER['REMOTE_HOST'];
$fields['user_agent']=$_SERVER['HTTP_USER_AGENT'];
//return succes
return true;
}
?>
So you should be able to use something like this snippet to get the GET value and add it to the report (or store it in a database or whatever you want to do with it) with no need for a hidden field.
If you really want hidden fields, you can use similar snippets with a different event to make the placeholders available to your form chunk.
Thanks for the information, Susan. I’ll be digging into this next week.