• 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 find phpcs current default standard

Input and output values for php into the browser?

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Where do I need to place a hook for phpunit?

how to insert data into select2 search input after scan using qrcode

How to get AJAX to post on second page?

using random function but it's displaying duplicates

Laravel Gates using model and returns "Using $this when not in object context" Line 28 of AzureUser model

How to get result of the formula on import xlsx with maatwebsite using Laravel? I get formula and not value of the formula

How to use PHPCBF to fix one issue at a time?

How to check user Permissions using Custom Middleware in Laravel

How to use React Router with Laravel?

Make certain characters of a word from string bold

How can I stop a symfony process which is listening on http://127.0.0.1:8000

Transpose and flatten multiple rows of array data [duplicate]

About Contact Privacy policy Terms and conditions