[TYPO3] sr_feuser_registration get Form data from other forms
Dmitry Dulepov
dmitry at typo3.org
Wed Oct 11 22:09:07 CEST 2006
Hi!
Tom Sotil wrote:
> So let's say I would like to have it in my typo script. There are two
> things. The forms I'm using before the registration are shown/executed
> with page_php_content, so I can "program" it with PHP and still use
> TYPO3 for the other pages.
Why don't you make normal extension instead? I would make an extension
with form and it is much easier to pass control to sr_feuser_register.
> The second thing is, that I want to show it to the user (the result) and
> when he transmits it, it will be added to the feuser table, where I
> already put (with ext kickstarter) the needed table fields.
>
> And how do I tell the system to get Infos from a table, well I mean how
> can he insert data from forms (made again with php) to a table and
> submit also his uid or even username...?
> I know there are select-statements which can be executed with
> typoscript, but how do I get the php-forms to work with newloginbox, for
> example?
You can check if user is logged in with TS conditions in TS. You can
find is user is logged in by examining $TSFE->fe_user like this:
-----------------
if (is_array($TSFE->fe_user->user) && $TSFE->fe_user->user['uid']) {
// Logged in
...
}
-----------------
$TSFE is a global variable.
--
Dmitry Dulepov
Web: http://typo3bloke.net/
Skype: callto:liels_bugs
"It is our choices, that show what we truly are,
far more than our abilities." (A.P.W.B.D.)
More information about the TYPO3-english
mailing list