Forums

Accessing form fields from a separate event

nassausky 19 Mar, 2012
Hi all...

Is there any way I can access the value a user enters into a form field from the "On Submit code - after sending email" code section? Are there any examples? I want to put the value into a variable called $hold as I do some manipulation to it. I'm sorry just to note without saving it to a joomla database.

Thanks.
GreyHead 19 Mar, 2012
Hi nassausky,

I'm not quite clear where you do the manipulation but input data is available using the Joomla! JRequest methods
<?php
$hold =& JRequest::getVar('hold', 'default_value', 'post');
?>


Bob
nassausky 21 Mar, 2012
Thank you. I will have to take a look at that in the next few days.
This topic is locked and no more replies can be posted.