Einzelnen Beitrag anzeigen

  #3  
Alt 17.12.2007, 17:14
Lasse Guldsborg
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] POST and GET in backend extension

Thanks Bernd! =)

Best regards,
Lasse

"Bernd Wilke" <xoonsji02 (AT) sneakemail (DOT) com> skrev i en meddelelse
news:mailman.1.1197546680.28471.typo3-english (AT) lists (DOT) netfielders.de...
> Lasse Guldsborg schrieb:
>> Hi list
>>
>> Could someone please help me understand how to handle POST and GET in
>> backend extension programming?
>> Perhaps by correcting this example:
>>
>> index.php:
>> <form action="sendmail.html" method="post">
>> <input type="hidden" name="username" value="myusername" />
>> <input type="submit" value="send" />
>> </form>
>>
>> sendmail.html:
>> <td>Username: <?php echo $_GET["username"]; ?></td>
>>

>
> Just have a look at the default-code of the kickstarter. (no
> table-handling)
>
> it contains a form and a usage of the form-values.
>
> * no imidiate usage of $_GET and $_POST (use t3lib_div::GPVar($varname)
> * no usage of global formfieldnames (use prefixId-arrays)
> * no usage of echo (all output in TYPO3 is done in stringvar $content, or
> any other wich is return from main-function, which can be operated by
> following methods)
>
> Bernd
> --
> http://www.pi-phi.de/t3v4/cheatsheet.html



_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english