[ic] Form profile for account.html

Tim Good tim.g at edsd.com
Mon Jul 10 23:40:16 EDT 2006

Interchange 5.41 perl 5.8

I am trying to get form field validation to work for the
account.hmtl page.
I am checking this by setting up a new account and using the
original account.html with a few added userdb fields.

The form settings are:

<FORM ACTION="[process secure=1]" METHOD="POST"
name="accountinfo" id="accountinfo">

[if type=explicit compare="[error all=1 show_var=1 keep=1]"]
<b>[L]There were errors in your last submission.[/L]</b>
[msg arg.0="<SPAN style='color:red;'>" arg.1="</SPAN>"]They
are shown in %sthis color%s below.[/msg]

[comment] account_change profile in etc/profiles.order

<INPUT TYPE=hidden NAME=mv_form_profile
<INPUT TYPE=hidden NAME=mv_todo     VALUE=return>
<input type=hidden name=mv_nextpage value="@@MV_PAGE@@">
<INPUT TYPE=HIDDEN NAME=mv_check    VALUE="Save_database">

[set Save_database]
[calc]Debug("Saving!"); return[/calc]
[if compare="[userdb save]"]
[warnings message="Information saved."]
[error name=userdb set="Information saved"]

__NAME__                            account_change


email=required email is required
fname=required first name is required
&fatal = yes
&setcheck = end_profile 1


I believe I am doing things by the book but it is not
Can someone point in the right direction, either by reading
or by example?

Tim Good
tim.g at edsd.com

More information about the interchange-users mailing list