• 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 make a foreign key not using primary key

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

Correctly determine if date string is a valid date in that format

How to add automatically collapse/expand in content wordpress (single.php)?

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

Custom add to cart button URL for specific product in WooCommerce?

User pool client {id}does not exist

Get number of working days between two dates in PHP [duplicate]

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

Inserting Country Selection into MySQL PHP [duplicate]

Open a popup box after receiving result from ajax

Facebook PHP SDK - will not logout properly

Passing a boolean value from checkbox in Laravel form

Pass an image through AJAX [duplicate]

Split comma separated value from table column into rows using mysql?

About Contact Privacy policy Terms and conditions