• 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

send email using gmail-api and google-api-php-client

How to update array value in Laravel

yii2 and mssql insert varbinary into model

Check if my GET request has Header: Token

Merge key and value of array index [duplicate]

Smarty: undefined extension class 'Smarty_Internal_Method_Get_Template_Vars'

PHP Include for HTML?

Popup Window and PHP form

Override default Auth routes in Laravel 7

Find out the name of the last script that included the current one

Apply session id from request header

Cross-Origin Resource Sharing (CORS) witth Laravel and Vuejs

What is the function of the (new Date()).getTime() in PHP?

Batch request Google Calendar php API

Edit XML in HTML form and submit to self

About Contact Privacy policy Terms and conditions