WeCodeThings Library
Library of code bits
Glossary    Contact Us
Need a web designer? visit WeCodeThings.Com for more details
Search  
   
Browse by Category

WeCodeThings Library .: PHP .: PHP ColdFusion Isset Isdefined Submit Form Know when a Form has Submitted using IF



PHP ColdFusion Isset Isdefined Submit Form Know when a Form has Submitted using IF

When processing a form, you need to know when the form has been submitted and then you can do the processes that are required. Here is the ColdFusion and PHP equivalent to each other for recognizing when a form has been submitted.

As I go from using ColdFusion to learning PHP, I have to note the differences between the ColdFusion language and the PHP language.

PHP equivalent:
  1. if(isset($_POST['btnSubmit']))
  2. {
  3.                 “do something”
  4. }

 ColdFusion equvalent:

  1. <cfif ISDEFINED(‘FORM.btnSubmit’)>
  2.                 “do something”
  3. </cfif>


How helpful was this article to you?

Related Articles

article HTML Submit Form Body Onload Form1 HTML Automatically
If you need a quick way to submit a html...

(No rating)  5-6-2009    Views: 759   
article PHP Simple Insert Into MySQL Database using isset function $_POST
To insert an item into the database, you...

(No rating)  5-8-2009    Views: 1026   
article ColdFusion Insert Data Statement Into a Table using ColdFusion CFC CFQueryParam
Be sure that when you type out the field...

  4-28-2009    Views: 1588   

User Comments

Add Comment
No comments have been posted.




.: Powered by Lore .:Code by WeCodeThings Website Design and Development