• 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

Transpose multidimensional array and join values with commas

Unable to run composer install

Check if user online laravel

best way to store error messages in Laravel (session or variable)

How to get total pages of PDF with FPDF?

Add Class in html Dynamically in PHP

How can I create a Download Page with post php method?

Session timeout in Yii2

If action is on a different page do I use fwrite function

error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure

WooCommerce Additional Information - if empty, hide

How can I make a full text index of the column?

Adding hreflang tags automatically in WordPress subdirectory multisite

Connecting an HTML webpage to a SQL Server

What is PHP's equivalent of JavaScript's "array.every()"?

About Contact Privacy policy Terms and conditions