Skip to main content
Known Participant
April 21, 2010
Question

lightwindow passing form variable to action page

  • April 21, 2010
  • 1 reply
  • 867 views

Hi,

I have a form that is popup using lightwindow to allow users to fill out the form.  For some reason, I couldn't get the form.variables to pass to the action page and insert into a database.  Anyone has suggestions or ideas?

thanks.

    This topic has been closed for replies.

    1 reply

    Inspiring
    April 22, 2010

    Can you please post your code here?

    Known Participant
    April 22, 2010

    link to open lightwindow pop up page.  of course i've all the js required on the top of the page

    <a href="form.cfm" params="lightwindow_width=500,lightwindow_height=600" class="lightwindow page-options">Form</a>

    here is the form

    <form id="form1" name="form1" method="post">

    <p><label for="fname">First Name</label><input type="text" name="fname" id="fname" class="inputText" /></p>

    <p><label for="lname">LastName</label><input type="text" name="lname" id="lname" class="inputText" /></p>

    <p><p><a href="hello.cfm" params="lightwindow_form=form1" class="lightwindow_action" rel="submitForm"><button>Submit</button></a> or <a href="#" class="lightwindow_action" style="color: blue;" rel="deactivate">Cancel</a>
    </p>

    here is the action page for the form (hello.cfm)

    <cfoutput>#form.fname# | #form.lname#</cfoutput>

    I do not know if this is out it's supposed to do it or not but the form variables are not passing over to the action page.

    thanks