• 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

PHP file_get_contents function

Dynamic table in HTML using MySQL and php

Send same name multiple checkbox values via ajax

500 (Internal Server Error) with Laravel & Docker [duplicate]

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

getting error while enter Command => php artisan route:list

html-php form submission after validation through JavaScript [closed]

Execute only one time and then wait set period of time before executing again

Transpose and flatten multiple rows of array data [duplicate]

Check if my GET request has Header: Token

Printing more than one array using print_r or any other function in php

Live search query using JS and PHP for QA forum

get attribute from class not working php 7

Google API Heatmap Layer exception, why?

Spam Filter in Contact Form

About Contact Privacy policy Terms and conditions