I am trying to accomplish something that may not be possible. I have an iframed page that I would like to have a php included contact form at the bottom of the iframe (outside of the frame). I would like to allow the consumer to fill the form while browsing the framed content and then submit BUT be able to continue searching where they were in the iframe and not have the entire page refresh and have them lose their place. Let me know if I am not being clear...
Could you describe that a little better? You have a page with an iframe in it, and a form below the iframe? It sounds like the form should be the iframe, and not the website. Or just use regular frames. Maybe you could describe it a little better or show an example?
The form itself will be in the page that surrounds the iframe. I just want the form to be submitted and the form data to clear without the page being refreshed because the framed page will reset upon a page refresh.
You may want to use AJAX for this, you can find an AJAX form script here: http://www.dustindiaz.com/ajax-contact-updated/ Another way you can do it is to have your script output the status: 204 code followed by two blank lines. This will tell the browser to not refresh the page.
There are many ready-made libraries that make AJAX very easy. Check out sAJAX . Its really cool and is very easy to use. http://www.modernmethod.com/sajax/ Check out the example programs at their site. Thomas