Verifying Page Contents From an iFrame or Remote Page
Posted: Tue Jun 07, 2005 10:19 pm
I was hoping that someone might be able to suggest a good way to accomplish the following in PHP:
From the main site the user selects check boxes and submits a form. I plan on nesting the logic within a for each statement that will iterate through each of the checkbox selections and submit the forms to various, remote signup pages. However, before moving to the next iteration I would need to verify that the form has been submitted successfully.
I thought about doing this via a small/hidden iframe and attempting to retrieve the page contents from the iframe into the main frame. I was able to write a class which reads the page contents of a remote URL, but if that URL is dynamic or based on the form values, I may also require those.
Does anyone know of a way to retrieve the contents of an iFrame in any way? Otherwise can anyone suggest how to carry this out? I'd even appreciate any theories that you might be able to suggest.
Thanks in advance.
CrazKanuk
From the main site the user selects check boxes and submits a form. I plan on nesting the logic within a for each statement that will iterate through each of the checkbox selections and submit the forms to various, remote signup pages. However, before moving to the next iteration I would need to verify that the form has been submitted successfully.
I thought about doing this via a small/hidden iframe and attempting to retrieve the page contents from the iframe into the main frame. I was able to write a class which reads the page contents of a remote URL, but if that URL is dynamic or based on the form values, I may also require those.
Does anyone know of a way to retrieve the contents of an iFrame in any way? Otherwise can anyone suggest how to carry this out? I'd even appreciate any theories that you might be able to suggest.
Thanks in advance.
CrazKanuk