Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP + POST an HTML form from inside an iFrame and redirect parent

I'm wondering if it's possible to do the following: have an iFrame inside of an HTML page. Inside the iFrame, I have a 'Pay with PayPal' button. When that button is clicked, and thus the HTML form is submitted to PayPal, I want the parent page to redirect to PayPal, rather than just the iFrame. Is this possible?

Thanks!

like image 702
Erebus Avatar asked Mar 01 '23 05:03

Erebus


1 Answers

I think you're looking for target="_top"

<form action".." target="_top">
</form>
like image 150
Alan Storm Avatar answered Apr 26 '23 09:04

Alan Storm