Get form input in onsubmit box

matthiashansal 21 Jan, 2011
Hi,

I'm sure this is an easy one - but I just can't figure out how to do this. I have been searching the forums for a while, but the only thing I got was that form data is pushed into a "$_POST" array, which I unfortunately don't know how to access.

I have a textbox in my form called "textbox". In the OnSubmit Box, after or before sending email, I want to retrieve the content of "textbox".

How do I do that?

Thanks,

Matthias
GreyHead 21 Jan, 2011
Hi Matthias,

<?php
$textbox = JRequest::getString('textbox', '', 'post');
?>

Bob
This topic is locked and no more replies can be posted.