Wednesday 15 August 2012

database - Session Variables, Hidden Fields and Tables -


OK, will this work?

When a user log in is created a session variable, then I can insert the correct user ID number in a hidden field by using the session variable. The hidden field is in the form that allows the user to add comments. So the User ID has been added from the 'Users' table to the 'Comments' table with hidden fields?

Thanks for the help if this will not work, is there any reason? If this will not happen, then what should I do to work?

Besides, I'm using ColdFusion, MYSQL and Dreamweaver if it makes a difference Cheers.

You do not need the hidden area of ​​user id on the form.

When the user sends in a form, then just use the session scope directly.

Therefore .. When user is logged in, store userid in sessionid.userid

, get session. Go to user and FORM.fieldXXX and go from there.


No comments:

Post a Comment