• 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

Unable to Edit config.inc.php

Laravel Model save() & update() Not Saving

how to pass row id in href of a tag in codeigniter controller?

Upload a file Using PHP and JavaScript

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

jQuery Ajax Post with data

How to increase the PHP upload limits [duplicate]

Apply filter array/return terms

Laravel insert dynamic input values with radio button

protect my blog content

How to redirect to another page and call a Function there on Angular ng-click

Whats the point of running Laravel with the command 'php artisan serve'?

Insert And Retrieve Data in MySQL with $.post Noob Question

Multiple order by in WooCommerce

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

About Contact Privacy policy Terms and conditions