Every seasoned developer will know that protecting your website from a hacker is a top priority, whether for your own reputation or for maintaining your company’s reputation and log-term revenue prospects.
Tags: Adobe, Application.cfc, Application.cfm, attack, best practice, Business, cfquery, cfqueryparam, ColdFusion, ColdFusion Administrator, cross-site scripting, database server, Databases, encryption, firewall, how to, howto, Java, Manitoba, Mark Kruger, prevention, protection, raw processing, RDBMS, script protect, security, software releases, SQL, SQL Injection, url, variables, vulnerability, Web Application Hacker, web code, Web Security, Web Server, Web Servers, webserver, XSS
In my first post in this series, I introduced Using JavaScript Arithmetic Operators in ColdFusion 8. Now we’ll concentrate on Assignment operators.
An assignment operator assigns a value to its left operand based on the value of its right operand.
The basic assignment operator is equal (=), which assigns the value of its right operand to its left operand. That is, x = y assigns the value of y to x. The other assignment operators are usually shorthand for standard operations, as shown in the following table.
Tags: assignment, assignment operator, ColdFusion, equal, examples, JavaScript, Meaning, operators, shorthand, subtraction, tutorial, variables
An often mentioned complaint by ColdFusion developers is the lack of operators commonly found in other programming languages such as JavaScript. For example, instead of the greater-than (>) symbol we have been restricted to the more wordy GT or GREATER THAN operator. However, in ColdFusion 8 this has changed and we have more freedom to use familiar JavaScript operators in <cfscript> blocks.
In the following series of posts, I will introduce the changes and show some simple examples. The first in the series is Arithmetic Operators.
Arithmetic operators take numerical values (either literals or variables) as their operands and return a single numerical value. The standard arithmetic operators are addition (+), subtraction (-), multiplication (*), and division (/).
These operators work as they do in most other programming languages.
Tags: addition, arithmetic, ColdFusion, decrement, division, examples, increment, JavaScript, literals, modulus, multiplication, operators, subtraction, tutorial, variables