• 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

500 Internal Server Error on Ajax request. Not sure the origin of the problem

How to send image,audio or video through the WhatsApp API - PHP

Check if my GET request has Header: Token

Unable to match results of php hash_hmac() and coldfusion hmac()

Creating live search with AJAX and CodeIgniter

Redirect to previous page with php

Cut an arabic string

Laravel 5.1 Unknown database type enum requested

Symfony there are no commands defined in the "make" namespace

Is it possible to re-use an array taken from PHP via JSON in a $.ajax function?

PHP how to detect if running on arm64 cpu?

Encrypt in php and decrypt in Dart(flutter)

Filter WooCommerce related products by Polylang language

PHP SoapClient: set a namespace without prefix

OctoberCMS / Anonymous Global Scope

About Contact Privacy policy Terms and conditions