coldfusion - Invalid token @ found while passing email address in cfhttparam -
i trying pass 2 email addresses (json value) follows:
line#91 <cfhttpparam type="formfield" name="inpemailobject" value="["email1@gmail.com","email2@gmail.com"]" /> however, ending following error:
invalid token @ found on line 91 @ column 75. cfml compiler processing: tag attribute email1, on line 91, column 69. cfhttpparam tag beginning on line 91, column 9. how can pass email address in value field?
if want include double-quote part of string you're sending, double it.
value="[""email1@gmail.com"",""email2@gmail.com""]" or, antony suggests, change 1 set single-quotes. should work:
value='["email1@gmail.com","email2@gmail.com"]'
Comments
Post a Comment