[Typo3] $_POST['MyVar'] doesn't work!!

Peter Klein peter at umloud.dk
Wed Dec 7 11:14:00 CET 2005


Hi bamba..

Your question was how to use $_POST['MyVar'] from an extension, and 
Patrick's answerered you correctly..
Either you didn't read his reply, or you didn't formulate your question 
correctly..

I suggest you take a look at "class.t3lib_div.php" which contains GET/POST 
functions, and read the documentation about writing extensions..

http://typo3.org/documentation/document-library/player_profile_basic/
http://typo3.org/documentation/document-library/doc_core_cgl/
http://typo3.org/documentation/document-library/doc_core_api/High_priority_functi/

-- 
Peter Klein/Umloud Untd

"bamba thiam" <mbthiam at gmail.com> skrev i en meddelelse 
news:mailman.4543.1133948058.24100.typo3-english at lists.netfielders.de...
i get some problems Patrick,because it's a simple $_POST['MyVar'] but yours
suggestions are to get content of $_POST['MyVar'] from an extension or a
function to a function main().
I just want to get the value of content of $_POST['MyVar'] in the same
function please.
thanks

2005/12/7, bamba thiam <mbthiam at gmail.com>:
>
> thanks Patrick for your reply.i check it right now
>
> 2005/12/6, Patrick Rodacker <rod at biba.uni-bremen.de>:
> >
> > Hi bamba,
> >
> > bamba thiam wrote on 06.12.2005 17:52:
> >
> > > i want to use $_POST['MyVar'] in a file of an extension.
> > > The syntax is right But i can't get the content of the
> $_POST['MyVar'].
> > > does typo3 have an other why to get the content of $POST['MyVar']?
> >
> >
> > you could either use $this->piVars['MyVar'] [1] which stores POST and
> > GET data or you can use t3lib_div::_GP('MyVar'),
> > t3lib_div::_GET('MyVar') and t3lib_div::_POST('MyVar') [2] to access the
> > submitted data directly.
> >
> > Regards
> > Patrick
> >
> > [1]
> >
> >
> http://wiki.typo3.org/index.php/Extension_Development%2C_using_POST_Forms$GLOBALS['TSFE']
> >
> > [2]
> >
> >
> http://typo3.org/documentation/document-library/doc_core_cgl/Variables_and_Consta-1/#oodoc_part_260
> > _______________________________________________
> > Typo3-english mailing list
> > Typo3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> >
> _______________________________________________
> Typo3-english mailing list
> Typo3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> 





More information about the TYPO3-english mailing list