• 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

ConstraintViolationListInterface to Exception in Symfony

Pass a select with mysqli_fetch_row to a table

How do I upload a laravel project on cPanel shared hosting?

How to override header set in Apache config with more specific header in a virtual host

WHERE IN array binding in DB::raw laravel 5.4

How to get the total hour from starting time to end time in php

How to change HTML structure inside WP <head>

cakephp save drag and drop list order to database

Navigation idle on content download

How to Create WooCommerce Subscription Product via. REST API?

How to create a scheduler application in php

Form Validation and Submission to database

Sliders in Laravel

OctoberCMS / Anonymous Global Scope

Jquery DataTables: Data not displaying in table via Ajax

About Contact Privacy policy Terms and conditions