• 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

jwt decode throws Invalid argument supplied for foreach() on php-jwt and codeignitor 4

Laravel print last executed SQL query with Query log

Warning file_get_contents () failed to open stream: HTTP request failed! HTTP/1.0 402 Payment Required

Navigation idle on content download

Detect emoticons in string

How do I remove this delivery notification from here?

Attempt to read property "view" on null when sending password reset email

how to upload binary image to sql server using php laravel

Array to string conversion

How can i update or reset my password without entering email field in laravel-8?

How to loop a tree array with unknown depth and get array blocks?

Create tags in laravel post publishing

Laravel 8: Array to string conversion while calling route:list

Ajax GET request fails in laravel 8

"There is no active transaction" when refreshing database in Laravel 8.0 test

About Contact Privacy policy Terms and conditions