Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form field named email

Status
Not open for further replies.

TechDude

Programmer
Jul 20, 2000
62
US
Hi all, Has anyone noticed a problem with naming a field email in cf?
I have on several occasions used a form with a text field called email which has not been recognized correctly by cold fusion. It doesn't seem to be recognized.
currently, I'm doing a simple form mail script which loops through all fields submitted to it and writes them into an email. the field email doesn't get written in.
I'm wondering if this is a bug????

thanks,
Chris Sorel
chris@exnihilo.com
Remember, If you continue to do what you have always done,

you will continue to get what you have always gotten.
 
Hey Chris,

I regularly use "email" as the name of a form field so I don't think it's a CF reserved word. I don't have a reserved word list handy for CF so I can't say for certain as there are a number of names that are illegal variable names such as "cgi", "application", etc.. that have special meanings to CF. I would change the name to something like "myEmail" and see if it does the same thing. If not, then I would say it's either a reserved word, bug, or possible conflict with something else in your script. If you want to post your code, I'll take a look and see if I see anything that might be causing the problem.

Good luck,
GJ
 
You could also try prefacing your variable name with the scope when you are referencing the email variable. For example, when passing the variable via a form, refer to it as "form.email".
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top