Hello, I am developing a contact form and I have the form fully working but all I want is for when you fill out the contact form and submit it, a Lightbox window shows the confirmation page instead of it opening in the whole window. I have tried everything I can think of (I am a complete newbie with JS) so I am hoping one of the nice experts here could help me out. The form is located here: http://tomabyte.co.uk/FORM-SPACE/ If someone could help me I would highly appreciate it. Cheers, Tom.
What do you mean by a lightbox windo?? you currently have <form target="foo" onsubmit="window.open('', 'foo', 'width=800,height=220,status=no,resizable=no,scrollbars=no')" name="fsForm959562" action="http://www.formstack.com/forms/index.php" method="post"> HTML: delete this target="foo" onsubmit="window.open('', 'foo', 'width=800,height=220,status=no,resizable=no,scrollbars=no')" to submit the form on the current page! If you want the submission to be done on that page along with the form, then you can use AJAX forms... Here are some examples: http://www.bitrepository.com/a-simple-ajax-contact-form-with-php-validation.html http://www.webresourcesdepot.com/a-pretty-ajax-contact-form-with-jquery-php/ Or google yourself for AJAX/PHP contact forms Hope that helps!
Thanks but I don't think you understand. A lightbox window is a Javascript window that shows up, for example, FancyBox: fancybox.net What I want is when you click "Submit" a FancyBox window to show the result page. What I currently have is just an alternative to what I want. Thanks for replying.