TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

Die TYPO3 Mailingliste - nicht fragen: lesen!

[TYPO3] POST and GET in backend extension

This is a discussion on [TYPO3] POST and GET in backend extension within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hi list Could someone please help me understand how to handle POST and GET in backend extension programming? Perhaps by ...


Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 13.12.2007, 12:22
Lasse Guldsborg
Gast
 
Beiträge: n/a
Standard [TYPO3] POST and GET in backend extension

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>


Cheers,
Lasse


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 13.12.2007, 12:51
Bernd Wilke
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] POST and GET in backend extension

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Themen-Optionen Thema durchsuchen
Thema durchsuchen:

Erweiterte Suche
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
[TYPO3-german] Eigene Extension Backend Listing Frage Matthias Kappenberg typo3-german@lists.netfielders.de 0 04.11.2007 16:05
[TYPO3] Editing a backend extension: why is my function undefined? Lasse Guldsborg typo3-english@lists.netfielders.de 0 25.10.2007 16:50
[TYPO3-german] Zugriff auf $conf in Backend-Extension Christian Clemens typo3-german@lists.netfielders.de 0 14.05.2007 07:44
[TYPO3-german] Zugriff auf $conf in Backend-Extension Thomas Janke typo3-german@lists.netfielders.de 5 31.01.2007 18:43
[TYPO3] Backend: How to change the way an extension orders records Brian Bendtsen typo3-english@lists.netfielders.de 4 05.12.2006 13:22


Alle Zeitangaben in WEZ +1. Es ist jetzt 07:41 Uhr.


Powered by vBulletin® Version 3.7.2 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39