• 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

Laravel Excel::store file empty after stored

Yii2 select2 database exception number of bound variables does not match number of tokens

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

Display specific shipping method if woocommerce product has specific acf field value

Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given [duplicate]

how can I set a session variable in Drupal 8 and get it in a php script?

How to increase the PHP upload limits [duplicate]

PHP SoapClient: set a namespace without prefix

Pass an image through AJAX [duplicate]

Laravel lang slug in url

Laravel MSSQL Server Connection not working

Why do I have invalid argument supply for foreach in Laravel for json response? [duplicate]

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

Display a product custom field only in WooCommerce Admin single orders

Xdebug in Laravel is not working with VSCode

About Contact Privacy policy Terms and conditions