close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

How to apply values to hidden fields during registration..

Thread began 9/01/2009 9:22 pm by steve387748 | Last modified 9/04/2009 4:45 pm by steve387748 | 2230 views | 6 replies

Eric Mittman

It is ok to add in hidden form fields to the form to add in this extra info. Once you have the form fields in place and have the values set for them you would make sure to update your update and insert server behaviors to bind the columns in your table with these new form fields.

For the fields you mentioned you should have the following values:

created_by - you can bind this to the existing email field since it is the same value

created_dt - if you want to make it always the time it was created you can just set the value directly in the insert server behavior. The code you would use the for the value of this column would be:

<?php time(); ?>

This will set the value of this form element to be the current timestamp. If you need it to be formated in a particular way you can format the timestamp using the date function in php.

ip_address - you can just set the remote address for this directly in your insert or update server behavior, this is more direct and does not give an opportunity to the user to manipulate this value.

On your update page you would want to set the last updated column to the same value you use for the inserted time column on the insert page.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...