This topic is locked

Password Confirmation Field

1/1/2010 4:20:49 PM
PHPRunner General questions
L
Lloyd author

Is there a way to add a field to a add/edit form that would note be part of a table but

needed to complete a table add/edit.
An example would be a captcha field or a password reenter field.
Lloyd

A
alang 1/3/2010

Add a field in the SQL query (ie use existing field with alternative alias) and then unset this field in the event code ("Before record updated") so PHPR doesn't try to write it back to the database.

L
Lloyd author 1/3/2010



Add a field in the SQL query (ie use existing field with alternative alias) and then unset this field in the event code ("Before record updated") so PHPR doesn't try to write it back to the database.


Hi,
Ok I did what you said and to my amazement it works. Now I can add a filed to a form like a confirm password.

I just need to know the syntax to unset this filed.
Thank you for your help.
Is there any thought to adding an easier way of doing this in a future release of phprunner.
Lloyd

A
alang 1/4/2010

unset($values["yr field name"]) // PHP function to make it NULL
In before record updated event.