Pass some datas to registration form

Have a programming question regarding your component, plug-in, extension or core hacks? Have an interesting tidbit, FAQ or programming tip you’d like to share? This is the place for you.

Moderators: tjay, seadap, Rogue4ngel, matthewhayashida

Post Reply
n3m0
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jun 02, 2007 5:31 am

Pass some datas to registration form

Post by n3m0 » Mon Aug 13, 2007 5:49 am

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

User avatar
CirTap
Joomla! Intern
Joomla! Intern
Posts: 73
Joined: Mon Dec 12, 2005 5:34 pm
Contact:

Re: Pass some datas to registration form

Post by CirTap » Mon Aug 13, 2007 9:13 am

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
You can have programs written fast, well, and cheap, but you only get to pick 2 ...

"I love deadlines. I like the whooshing sound they make as they fly by." Douglas Adams

n3m0
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Sat Jun 02, 2007 5:31 am

Re: Pass some datas to registration form

Post by n3m0 » Mon Aug 13, 2007 9:26 am

Allright, thank you so much :)


Post Reply