• 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 set time with DateTime modify?

How can I get a div content in php

how to create html table in php

Convert date and time to Jalali in Laravel

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

HTTP Range requests with php for Video Embedding for solving going to specific time in video (seek bar not work)

Sort multidimensional array by column value within a column

Laravel 5.1 Unknown database type enum requested

Could not decode a text frame as UTF-8.

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

PHP block shortcut in Visual Studio Code

Explain how this array transposing and flattening function works

How to modify CSS in a specific page of the WP admin dashboard (backend)

insert multiple rows in a saveall in cakephp

How to install ZeroMQ for PHP on an Alpine Linux container?

About Contact Privacy policy Terms and conditions