coldfusion - How to pass variables to a CFC on Form submission without using hidden fields? -



coldfusion - How to pass variables to a CFC on Form submission without using hidden fields? -

using: coldfusion 10, jquery 1.9, iis

i made chlorofluorocarbon (allows remote access) handles insertion of comments database, whether new comments or replies existing one.

i have form submits chlorofluorocarbon when want create comment.

at moment passing (as hidden fields) form variables chlorofluorocarbon tell various things comment that's inserted: e.g. user comment (the recipientid) , commentid in reference (if reply). these values alter lot because user replying user's comment.

i don't want send hidden variables in form because can modified malicious person. how can send main form info using form variables (e.g. comment body) pass sensitive variables using coldfusion not manipulable hacker?

one thing submit page , utilize <cfinvoke> phone call chlorofluorocarbon , pass in arguments. set arguments in invocation rather in form. right way it?

regarding, "one thing submit page , utilize phone call chlorofluorocarbon , pass in arguments. set arguments in invocation rather in form. right way it?"

i think lot improve submitting chlorofluorocarbon doing now. slight variations of theme are:

submit page invokes chlorofluorocarbon method. forget chlorofluorocarbon , set database phone call .cfm page. in fact, if chlorofluorocarbon contains nil insert query , not used elsewhere, it's unnecessary.

as far not using hidden form fields goes, might in trouble. user info can stored in session scope suggested henry, recipient info harder protect. create recipient id part of form field name. protect neer wells, add together check on cgi.http_referrer variable.

coldfusion

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -