[ic] Adding Users to UserDB

Ed LaFrance interchange-users@lists.akopia.com
Fri May 18 12:29:00 2001


At 01:00 AM 05/18/2001 +0100, you wrote:
>Hi Interchange Users,
>
>I'm a interchage user from Portugal. I would like to contact other users,
>but I have a problem and trying to solve for days. Even in the simple and
>barry demos doesn´t work.
>
>I have two forms. One creates a new account and other captures and saves
>more user data. I'm using interchange 4.5 (Red Hat 7.0) and when I use the
>backoffice to see user data I only have the username, no email, addresses,
>etc.
>
>Page New Account is like this:
>
>[set NewAccount]
>[if type=explicit compare="[userdb new_account]"]
>mv_nextpage=account
>[else]
>mv_nextpage=register
>[/else]
>[/if]
>[/set]
>
>
><form action="[process-target]" method=post>
><input type=hidden name=mv_click value=NewAccount>
><input type=hidden name=mv_doit value=return>
><input type=hidden name=function value=new_account>
><input type=hidden name=mv_nextpage value=account>
><input type="text" name=mv_username value="" size="10">
><input type="password" name=mv_password value="" size="10">
><input type="password" name=mv_verify value="" size="10">
><input type="submit" value="Register" size="10">
></form>
>
>
>And Page Account is like this:
>
>[set Save_database]
>[userdb save]
>[/set]
>
><FORM ACTION="[process secure=1]" METHOD="POST">
><INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">
><INPUT TYPE=hidden NAME=mv_todo     VALUE=return>
><INPUT TYPE=hidden NAME=mv_nextpage VALUE=index>
><INPUT TYPE=HIDDEN NAME=mv_check    VALUE="Save_database">
><input type="text" name=fname value="[value fname]" size="10">
>...
><input type="submit" value="Update" size="10">
></form)
>

Well </form) is a typo which could break the form itself, but assuming that 
it is correct in the actual code, and if it does in fact happen on the 
unmodified demos, I would guess that you are losing your session id between 
pages.  Trying putting [data session id] in a visible place on both pages, 
and try creating an account, and watch the id value closely.  If it is 
different on the second page than the first, that is the problem.  Easily 
fixed - added this input the new account creation form on the first page:

<INPUT TYPE=hidden NAME=mv_session_id VALUE="[data session id]">

BTW - session id's changing with each from submission is a direct 
consequence of a cookie-disabled browser.

- Ed L.




===============================================================
New Media E.M.S.               Software Solutions for Business
463 Main St., Suite D          eCommerce | Consulting | Hosting
Placerville, CA  95667         edl@newmediaems.com
(530) 622-9421                 http://www.newmediaems.com
(866) 519-4680 Toll-Free       (530) 622-9426 Fax
===============================================================