Page 1 of 1

Pass some datas to registration form

Posted: Mon Aug 13, 2007 5:49 am
by n3m0
I do apologize if this is not the right place for me to ask this question.
I have searching the forum using "registration form" as key word, but cant find what i m looking for, so please forgive me if someone already ask about this on another place.

I have a need to have simple form at frontpage to collect only name and email of those who want to register, when they click on register button, this two infos (name and email) will be passed to original registration form and fill name and email field of that form.
Here is the code i used(im newbie so please dont laugh lol):


Name :

Email Address:



When com_registration show up, name and email's field still empty, how can i pass this info from frontpage.

Please dont direct me to any extension, i just wanna know is there a way to do this by only changing the index of theme.

Thanks in Advance,
n3m0

Re: Pass some datas to registration form

Posted: Mon Aug 13, 2007 9:13 am
by CirTap
Hi,

n3m0 wrote:When com_registration show up, name and email's field still empty, how can i pass this info from frontpage.

you can't.
the registration form does not accept external data to be shown inside the form.
Since this is a J! 1.0.x related question, you'd need to "hack" registration.html.php in order to do so.

Your FORM code also contains some irrlelevant data that'd never make it to receiving script.
- the action URL contains two additional arguments
- both are also available as fields
- since the FORM uses method=POST the params given in the action-URL will be overwritten by those fields

Have fun,
CirTap

Re: Pass some datas to registration form

Posted: Mon Aug 13, 2007 9:26 am
by n3m0
Allright, thank you so much :)