#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    3
    Rep Power
    0

    Question getting the values of posted variables


    Hi guys,

    I'm using a payment gateway for my site. I provided a return url on the form that submits to the payment gateway. After payment is made, the user is redirected to the url I set on the return url field.

    I need to know the post'd variables if there are any. The payment gateway I'm using doesn't have documentation on what variables they return back to your webpage. That's the reason for my asking. =D

    I would appreciate some help on this. =)


    Benedict
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    2
    Rep Power
    0
    Find the field names and reference to them thus,
    <cfset myfield="#FormName.FieldName#">
    Repeat as neccassery, then you can just use #myfield# to get the value. You could then use <cfmail> to e-mail the results.
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    3
    Rep Power
    0
    Uh... I don't know the names of the variables that are returned to my file.

    Is there a way of knowing the names of the variables that are posted to my files?
  6. #4
  7. No Profile Picture
    Moderator

    Join Date
    Jun 2002
    Location
    Raleigh, NC
    Posts
    5,263
    Rep Power
    968
    If you turn on debugging, you can see any form or url variables that are coming into the page. If you don't have debugging on, you can always use cfdump to see what are in those scopes:

    <cfdump var="#form#">
    <cfdump var="#url#">
  8. #5
  9. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    3
    Rep Power
    0
    Thanks!! =D

IMN logo majestic logo threadwatch logo seochat tools logo