[Typo3] Using GET variables, need opinions/help.

Kraft Bernhard kraftb at gmx.net
Tue Mar 1 10:04:24 CET 2005


Joshua Preston wrote:
> If I am making an extension and need to use GET variables, is
> 
> $variablename = t3lib_div::_GET('variablename');
> 
> the correct way of doing it or is there another preferred method?

The method I prefer is:

$content .= '<input type="text name="'.$this->prefixId.'[email]" value="Enter your email here">';

I can then access the value in my FE Plugin with:
$email = $this->piVars['email'];

greets,
Bernhard
-- 
Kraft Bernhard
MOKKA Medienagentur <http://www.mokka.at>
T: +43 - 1 - 895 33 33 - 50



More information about the TYPO3-english mailing list