capturing Form Data using coldfusion script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pbrooks252
    New Member
    • Aug 2007
    • 1

    capturing Form Data using coldfusion script

    I am very new to Macromedia Coldfusion, I have a user registration form and would like to capture / store & for debugging purposes echo (print) the form data using a CFscript. The form’s name is Registration one of the text fields name is FirstName. I am having a problem referencing the value entered into the field. My reference is as follows ……. Registration.Fi rstName but it isn’t recognized what is the correct way to reference form data. Does anyone have a colfusion script to capture, store and print form data and a query to store it in MySql.
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Welcome to TSDN!

    This depends on whether the method was "get" or "post".

    If it's a GET request, you can access form data using [CODE=cfm]#url.FirstName#[/CODE] and for POST:[CODE=cfm]#form.FirstName #[/CODE]

    Comment

    Working...