19

How do you get values from a POST request in ColdFusion?

Figured the hard way that POST.id doesn't work like URL.id.

Ivar
  • 6,138
  • 12
  • 49
  • 61
IzzyCooper
  • 586
  • 1
  • 5
  • 14

2 Answers2

35

Post values are passed in the FORM scope ie FORM.id

Leigh
  • 28,765
  • 10
  • 55
  • 103
12

You want FORM, not POST. eg form.id or form['id']

Henry
  • 32,689
  • 19
  • 120
  • 221
Ben Doom
  • 7,865
  • 1
  • 27
  • 30