Skip to main content
April 21, 2010
Question

lightwindow passing form variable to action page

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Inspiring
    April 22, 2010

    Can you please post your code here?

    Translate
    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

    Translate