[TYPO3-dev] GET-parameter in sr_feuser_register
Sven Kalbhenn
sven at skom.de
Sat Aug 2 18:24:22 CEST 2008
Hi all,
I've got an very annoying problem with sr_feuser_register:
I want to receive a GET-value into the register-form and save it to the
fe_users-table.
The GET-value is coming from e-mails and websites, with their ident-number -
so I'll know from where the new fe-user is coming from.
In the fe_user-table there is a new field "tx_myfields_ref_id " for this.
In TSetup I use this entry:
plugin.tx_srfeuserregister_pi1 {
create.fields = username, password, tx_myfields_ref_id
create.overrideValues.tx_myfields_ref_id = {GPvar:ref}
create.overrideValues. tx_myfields_ref_id.insertData = 1
}
If I open the register-form with "&ref=99" at the end of the URL, I can see
in the javascript-section this:
updateForm('tx-srfeuserregister-pi1-fe_users_form','FE[fe_users][tx_myfields
_ref_id]','99');
This means that the {GPvar:ref} seems to work - but nothing is saved to the
database anyway!
Even on the preview-page my value for tx_myfields_ref_id is gone!
I've got no idea why!!
Now I've spend several hours on this problem, but couldn't fix it.
Does anyone know a solution for my problem????
CU...Sven Kalbhenn
More information about the TYPO3-dev
mailing list