• 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 : How to Create Dropdown to Select FOREIGN KEY from Other Table?

Correct way to use LIKE '%{$var}%' with prepared statements?

HTML + PHP + PHPMAILER

Clients authentication and user authentication with laravel

yii2 and mssql insert varbinary into model

What is PHP's equivalent of JavaScript's "array.every()"?

How to add a heading in between checkout fields of WooCommerce

PHP my timezone is no setting up in PHP.ini File in xampp

Laravel s3 upload file with metadata using pre-signed url

The "client_reference_id" argument is not passed

PHP, how to convert Int value to Week days

How to display table header in every page using FPDF library?

How to run a shell as root from php (apache)

Popup Window and PHP form

Get lat/lon from google maps url ftid (hex)

About Contact Privacy policy Terms and conditions