• 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

SQL AVG() to 2 decimals

Using PHP to connect to a remote MSSQL database

Composer Warning: openssl extension is missing. How to enable in WAMP

Laravel Nova Dependency Container what are the allowed resource properties other than id in dependsOn

Coinpayments create_transaction "ERROR: Invalid command!"

Component install error: JInstaller: :Install: File does not exist

PHP using str_starts_with for array to exclude same as with wildcard

Composer Curl error 60: SSL certificate problem: unable to get local issuer certificate

Laravel 4 Redirect::back() not going to previous page (refreshing current page)

How can I make Laravel return a custom error for a JSON REST API

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

how to youtube api data to print in toolset metabox using a button click before save-post

Cache clear probem in Larave

How to get array values using foreach in laravel

Transpose csv file data [duplicate]

About Contact Privacy policy Terms and conditions