Hi
I need to call a local PHP file that will reside in a IFRAME inside a dialog2. In my case, that PHP file will redirect to clear a credit card and return confirmation/rejection.
In the sample they sent, i can clearly see the mechanism in action: they sent a simple HTML file, which basically defines a FORM which submission type is set to POST and the target is the IFrame, then they have some INPUT directives to get the required fields ( some parameters and requested amount to charge ).
I setup my dialog to be "Genie Style" with 2 pages. In the first page, i collect all the services and calculate the price, and in the second page i put the IFRAME.
My problems so far:
- how can i POST to the iframe the list of parameters, i.e similar to having INPUT directives with the specific parameters names and submit them to the iframe
- how can i have the IFRAME control point to the local php file? Where exactly should i put the file?
- assuming all the above works as expected, upon submitting the credit card info inside the iframe, it will redirect if successful to a page i decide. What i would like to do in that case is just to Submit the dialog and send some confirmation email, maybe even close the whole dialog. How can i do that?
Thanks in advance
Jaime
I need to call a local PHP file that will reside in a IFRAME inside a dialog2. In my case, that PHP file will redirect to clear a credit card and return confirmation/rejection.
In the sample they sent, i can clearly see the mechanism in action: they sent a simple HTML file, which basically defines a FORM which submission type is set to POST and the target is the IFrame, then they have some INPUT directives to get the required fields ( some parameters and requested amount to charge ).
I setup my dialog to be "Genie Style" with 2 pages. In the first page, i collect all the services and calculate the price, and in the second page i put the IFRAME.
My problems so far:
- how can i POST to the iframe the list of parameters, i.e similar to having INPUT directives with the specific parameters names and submit them to the iframe
- how can i have the IFRAME control point to the local php file? Where exactly should i put the file?
- assuming all the above works as expected, upon submitting the credit card info inside the iframe, it will redirect if successful to a page i decide. What i would like to do in that case is just to Submit the dialog and send some confirmation email, maybe even close the whole dialog. How can i do that?
Thanks in advance
Jaime
Comment