[ic] capturing additional field when creating a new account
Jason Crickmer
interchange-users@icdevgroup.org
Sun Apr 20 22:15:01 2003
Mike,
On Sun, Apr 20, 2003 at 04:30:09PM -0400, Mike Heins wrote:
> Quoting Jason Crickmer (jason@rancor.jedi.net):
[snip]
> > I have added a new field to user_db called "ad_source". I am pretty
> > sure that it works at the database level, as I can modify user
> > accounts in the Admin tool without any hassle. But, I cannot get the
> > value from the user-facing form into the database!
>
> Use mv_check instead of mv_click. And you don't need to pass the
> username parameter (username="[value mv_username]") as it is redundant
> and possibly unsafe.
Your comment pointed me in the right direction, in a way. mv_check
caused it to always show "Username already exists." But, in the
message
http://www.icdevgroup.org/pipermail/interchange-users/2002-October/027380.html,
it talked about chaining mv_click and mv_check. This seemed to do the
trick:
[set NewAccount]
[if type=explicit compare="[userdb new_account]"]
mv_nextpage=account
mv_check=AccountSave
[else]
mv_nextpage=new_account
[/else]
[/if]
[/set]
[set AccountSave]
[userdb save]
[/set]
Thanks for the help!
Thanks,
Jason
PS - It appears that maybe teh "nickname" attribute could be used here
as well to reduce the lines of code, right?