• 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

HTML + PHP + PHPMAILER

Add 2 Webcam in one page with WebcamJS

Symfony autowiring issues since docker update

Populate Dynamic Dropdowns List in Codeigniter

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

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

merge all files in directory to one text file

Phalcon: setStatusCode returns empty response

What is the function of the (new Date()).getTime() in PHP?

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

Using spatie/media-library, how to rename a collection of uploaded files?

Yii Ajax Submit button

Laravel-fopen: failed to open stream: Permission denied

How to change product Image when variables are selected in Shop and Archive Pages?

Add Class in html Dynamically in PHP

About Contact Privacy policy Terms and conditions