---
title: "ALLE Variablen aus POST"
url: "https://www.typo3.net/d/26195-alle-variablen-aus-post"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Frage","PHP"]
created: "2005-06-20"
last_reply: "2005-06-22"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# ALLE Variablen aus POST

Extensions › Entwicklung · 1 Antwort · gestartet 2005-06-20

## Eröffnungsbeitrag

**cle** · 2005-06-20 · [Beitrag #1](https://www.typo3.net/d/26195-alle-variablen-aus-post/1)

Hallo

ich habe gelesen, dass man mit typo3 nicht direkt auf die POST und GET Variablen zugreifen soll, sondern dies mit t3lib_div::_GP('variable') tun soll. Wie hole ich mir aber alle Variabeln nacheinander, also den kompletten Inhalt von POST/GET raus?

Habe ich so eine typo-Funktion übersehen? Oder wie setze ich so etwas um?

Jemand ne Idee, die der cle den Tag (die Woche) retten könnte? ;-)

Danke!

Die Cle

## Antworten

### [#2](https://www.typo3.net/d/26195-alle-variablen-aus-post/2) · Flink · 2005-06-22

_GET oder _POST mit Leerstring als Parameter aufrufen. Damit erhält man das Array zurück.

> function _GET($var='')
>
> Returns the global GET array (or value from) normalized to contain un-escaped values.
> ALWAYS use this API function to acquire the GET variables!
> $var='' 	string 	Optional pointer to value in GET array (basically name of GET var)
> Returns: 	mixed 	If $var is set it returns the value of $HTTP_GET_VARS[$var]. If $var is blank or zero, returns $HTTP_GET_VARS itself. In any case *slashes are stipped from the output!*

---

Quelle: „ALLE Variablen aus POST“, typo3.net, https://www.typo3.net/d/26195-alle-variablen-aus-post
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
