• 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

How to fix 'Data has already been sent to output, unable to output PDF file' in MPDF

Error converting docx to pdf using Unoconv

Edit product hook WooCommerce

I can't delete my image when it is liked because of the foreign key in mysql

How to get variable from JavaScript to PHP [duplicate]

Log a user out of a website when they put their computer to sleep

How to Create WooCommerce Subscription Product via. REST API?

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

Sum column values from multiple arrays

Get keys from associative array [duplicate]

With doctrine ODM, can I embed many subdocuments in a main document?

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

How to get the survey List from surveygizmo API in the Postman?(Trial Version)

send email using gmail-api and google-api-php-client

Not able to override collapsible.js in magento 2

About Contact Privacy policy Terms and conditions