• 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

correct PHP headers for pdf file download

add " ? " in url via htaccess RewriteRule

Querying only one row from a one to many relationship laravel

Object of class stdClass could not be converted to string error

How to trim a video by 4 fragments to 4 seconds using the PHP-FFMpeg?

Class AppHttpControllersUserController Does Not Exist

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

JQuery content editable div and text box on submit not sending POST

PHP/HTML: Creating A SubMenu

Insert database rows from columns of data from associative array of indexed arrays

Add restriction to WooCommerce coupons by allowed user ID

Yii2: How to download backup files using spanjeta/yii2-backup?

ldap is missing from system when installing adldap2 in laravel

Facebook SDK error: Cross-site request forgery validation failed. Required param "state" missing from persistent data

WordPress Subquery returns more than 1 row on SELECT

About Contact Privacy policy Terms and conditions