Skip to main content
Participant
October 19, 2008
Answered

Loop form variables with GET !

  • October 19, 2008
  • 2 replies
  • 652 views
Hi all !

I need to retrieve all the variable names that are used in the form.

Though i was able to retrieve the variable names of from the form using the POST method , but i am unable to get it using the GET Method.

Here is the code



The above code works for the POST method only..

When i change the form action to GET , it does not display anything.


Thanks for ur time.
    This topic has been closed for replies.
    Correct answer sh4nx0r
    Thank you Kronin. URL.varname did work.
    Thanks a lot dude.

    Dan i will check yours too.

    Thanks guys !

    2 replies

    Inspiring
    October 19, 2008
    With GET, the variables should also be available as a list in the cgi.querystring variable.
    sh4nx0rAuthor
    Participant
    October 20, 2008
    Thank you Kronin. URL.varname did work.
    Thanks a lot dude.

    Dan i will check yours too.

    Thanks guys !

    Participating Frequently
    October 19, 2008
    With POST, the variables are accessible in ColdFusion as FORM.variablename.

    With GET, the variables are accessible in ColdFusion as URL.variablename.