• 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

Is there a way to use the same parameter into multiple place in the same query with Eloquent? [duplicate]

WAMP/Wordpress - cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received

Combine multiple columns into an array as one of the key in a results set

PHP7 CLI attempts to load xdebug twice - "Cannot load Xdebug - it was already loaded"

Get sum of arrays inside array

storagelogs/laravel.log" could not be opened in append mode: failed to open stream: Permission denied

Required field only if another field has a value, must be empty otherwise

Laravel PackageManifest.php: Undefined index: name

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

Open a popup box after receiving result from ajax

How can i hide dt if dd got empty value

PHP block shortcut in Visual Studio Code

Why the name of trucks are same in 2nd and 3rd record of company data retrieval?

php 7 php.ini upload_max_filesize not working

loop through an anchor id

About Contact Privacy policy Terms and conditions