posting to iframes
Hello - I'd like to post some data to an iframe embedded in my document. The iframe contains a php page, which is scripted to pull up some records from a database depending on the variables posted to it.
More specifically, there's a search engine to the left of my iframe and i want the search query to be posted to the php script inside the iframe.
My question is - how do i post data into that frame without the browser taking me to the page inside the iframe. This may just be a basic HTML question - but I can't figure it out. I just want to pass the results to that page and have it fisplay inside the frame while keeping the browser still on the main page with the search engine. Can this be done?
Are you identifying the correct DOM?
Thank you - I have this in the form element:
<form name = "searchform" method = post onSubmit = "window.res.document.src = index.php;">
the Iframe is named 'res'
I would like this to load the index page into the iframe - can;t quite get it to work - I've been searching for something similar on the web as an example - any ideas what I might be doing wrong? thanks again.
<form name="searchform" method=POST action="index.php" TARGET="IFrameName">
alright! that worked perfectly - thanks!