Skip to main content
August 29, 2011
Question

how to set form action attribute to coldfusion variable

  • August 29, 2011
  • 1 reply
  • 758 views

Have a situation like

<cfset var1='http://site-name/dir/subdir/'' & var2>

<form action=? target='middle' method="get">

   <input name='a' type='submit' value='click'>

</form>

Want to set the form attribute to the variable var1.

How do you do this ?

    This topic has been closed for replies.

    1 reply

    Inspiring
    August 29, 2011

    <cfoutput>

    <form action="#var1#" etc>

    </cfoutput>

    August 29, 2011

    I've even done that before. I'm embarrassed. Thanks for your help.