---
title: "Frage über Postdata vom Powermail-Formular"
url: "https://www.typo3.net/d/111436-frage-ueber-postdata-vom-powermail-formular"
source: "typo3.net"
tags: ["Allgemein","Frage","PHP","Powermail"]
created: "2012-07-21"
last_reply: "2012-07-23"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Frage über Postdata vom Powermail-Formular

Allgemein · 1 Antwort · gestartet 2012-07-21

## Eröffnungsbeitrag

**rubenamerica** · 2012-07-21 · [Beitrag #1](https://www.typo3.net/d/111436-frage-ueber-postdata-vom-powermail-formular/1)

hallo
Hoffentlich darf ich hier mein Problem im englischen melden. Sonicht, dann will ich es gerne im deutschen versuchen...

I'm new to Typo3 and I truly find it an amazing system
but I'm facing a problem I cannot find an answer for: I want to run a custom php script when sending a form (via the powermail extension)

- I have put a php include to my php page in class.tx_powermail_submit.php
- my included php page simply sends a mail message to my mail address; later on, I want to do something else, namely calling to the API of Moneybird (this is a Dutch system for creating invoices); but to get to that stage, I first need to know how I can "read" or address to the fields in my powermail form in the code

below you can find a piece of the code (which is just an example, it is not the definite code I will be using)

the question is thus: how (which format/which code example) can I use to read out and use the value of a powermail form field in my own php page
some examples that I already tried, but without success:
$GLOBALS['TSFE']->fe_user->sesData['powermail_pi1']['uid83']
$tx_powermail_pi1[uid83]

many thanks in advance for helping me out on this one

Ruben America

-----------------------------
$facturatie = "moneybird";
if($facturatie == "moneybird") {

$Naam = $GLOBALS['TSFE']->fe_user->sesData['powermail_pi1']['uid83'];
$EmailAdres = $tx_powermail_pi1[uid96];
$Bericht = $tx_powermail_pi1[uid97];

$formsent = mail('innovedia@gmail.com',
'Gegevens afkomstig van formulier',
"Naam: $Naam

Bericht: $Bericht",
"From: $EmailAdres
Bounce-to: innovedia@gmail.com");

}

## Antworten

### [#2](https://www.typo3.net/d/111436-frage-ueber-postdata-vom-powermail-formular/2) · vince · 2012-07-23

hello,

you can access _POST and _GET data with t3lib::_GP (post and get), t3lib_div::_GET or t3lib_div::_POST
<http://doc-typo3.ameos.com/4.1.0/classt3lib__div.html#af8ccea9a538cf0ab765fbbed79dba46>

example:
t3lib::_GP('tx_powermail_pi1') will return an array with all _GET and _POST data (priority to post) for the plugin tx_powermail_pi1.

You can also access single parameters with t3lib::GPvar('tx_powermail_pi1[uidx]');

regards,
Vince.

PS: you also might want to take a look at this:
<http://typo3.org/extension-manuals/powermail/1.5.0/view/1/13/>
For adding own code to plugins most TYPO3-Extensions provide "Hooks".

---

Quelle: „Frage über Postdata vom Powermail-Formular“, typo3.net, https://www.typo3.net/d/111436-frage-ueber-postdata-vom-powermail-formular
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
