• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

Reload parent page after submit in iframe

javascriptphpjqueryhtmliframe


PHP Snippet 1:

<form method="POST" action="getForm.php">

PHP Snippet 2:

<?php

    $input = $_POST['input'];
    // process form and do your stuff etc

    echo "<!DOCTYPE html>";
    echo "<head>";
    echo "<title>Form submitted</title>";
    echo "<script type='text/javascript'>window.parent.location.reload()</script>";
    echo "</head>";
    echo "<body></body></html>";

?>

PHP Snippet 3:

window.parent.location.reload();

Related Snippets

How to retrieve Active Directory group policy maximum password age using LDAP

401 Unauthorized only occurring on some pages in Laravel 8

protect my blog content

Remove product downloads section in woocommerce email notifications

How to get AJAX to post on second page?

Pass a select with mysqli_fetch_row to a table

Zig-zag scan an N x N array

how to search for a file with php

Symfony 4: "Autowire: you should configure its value explicitly."

PHP if in_array() how to get the key as well?

No result using makeStyles Material UI in react 18

Why the name of trucks are same in 2nd and 3rd record of company data retrieval?

Backend cannot be reached after Typo3 login screen

Using array_intersect on a multi-dimensional array

How do I Post to .txt document before form submits

About Contact Privacy policy Terms and conditions