• 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 do I enable error reporting in Laravel?

Sync Records With Default Values in Pivot Tables, Call to undefined method syncWithPivotDefaults()

OctoberCMS / Anonymous Global Scope

Installing Composer - Internal Error

Access denied for user 'homestead'@'localhost' (using password: YES)

Wordpress wpdb->delete issue

How can i hide dt if dd got empty value

Doctrine 2 mapping referencing unique key

How to map the two arrays with a duplicate value?

Creating live search with AJAX and CodeIgniter

How to MODIFY a Google Docs document via API using search-and-replace?

Check if my GET request has Header: Token

How to redirect to another page and call a Function there on Angular ng-click

Send same name multiple checkbox values via ajax

Symfony autowiring issues since docker update

About Contact Privacy policy Terms and conditions