• 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

Laravel after login Two factor not working

How to fix " Uncaught TypeError: Argument 1 passed to JpGraphException::defaultHandler() " problem in php 7.1.3 and jpgraph 4.2.6?

Search for array row with specific column value and return another value from qualifying row

Assign output of PHP function to a variable

How to write PHP in XSLT

PHP code for generating decent-looking coupon codes (mix of letters and numbers)

Uncaught TypeError: Cannot read property 'length' of null when retrieving tags from wp

php file upload scanning using clamav, permissions on /tmp/

How do I refresh a DIV content?

CodeIgniter force_download is not working

how to fix Service provider class not found when using repository?

Override default Auth routes in Laravel 7

Warning: sqlite_query() expects parameter 1 to be resource, string given

Getting error: CodeIgniterDatabaseBaseResult::getResult in CodeIgniter

Laravel Schedule not sending email

About Contact Privacy policy Terms and conditions