• 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

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

WooCommerce Additional Information - if empty, hide

How to remove from a multidimensional array all duplicate elements including the original?

Lumen - Postgresql setup - Composer

Transpose csv file data [duplicate]

Failing validation doesn't stop code execution in livewire component

how to see if database exists with PDO [duplicate]

MySQL order by field in Eloquent

how to sort by a custom appended relation to model

Applying programmatically a coupon to an Order in WooCommerce3

Cannot connect to own websocket server when on secured domain

jQuery Ajax Post with data

Confirm Leave on External Links in Wordpress

Select option from dropdown menu with PHP and mySql

dompdf and img tag, image wont show

About Contact Privacy policy Terms and conditions