• 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

merging two arrays with specified index

PDOException SQLSTATE[HY000] [2002] No such file or directory

Is there a way to use Foundry Model for Authentification inside Functional Tests?

How to find the date a user created their Google account

How to change HTML structure inside WP <head>

WordPress Subquery returns more than 1 row on SELECT

how to create html table in php

Display the default discounted price and percentage on Woocommerce products

Match csv filenames to table names and import

How to Display Data in Yajra Datatables Laravel 7?

MOODLE: What does it mean to aggregate h5p assets?

Symfony - "framework.test" config is not set to true

How to render html from a @foreach loop in a textarea

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

Yii2 select2 database exception number of bound variables does not match number of tokens

About Contact Privacy policy Terms and conditions