• 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

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

Get WooCommerce products from specific category

Merge key and value of array index [duplicate]

How to add a sidebar to Woocommerce Shop Page?

Laravel Route issues with Route order in web.php

PHP | "The requested PHP extension bcmath is missing from your system."

Component install error: JInstaller: :Install: File does not exist

Parsing JSON File to array in PHP

Target Laravelista is not instantiable

Where do I need to place a hook for phpunit?

How to read laravel_session cookies saved in cookie memory of browser in client side?

Python - Include another Python script

Substitute integers and dots with regex [duplicate]

Additional price based on cart item count in WooCommerce

How to reset Laravel AuthManager/guards in between API calls in tests?

About Contact Privacy policy Terms and conditions