• 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

Xdebug 3 not showing in phpinfo on m1 Monterey

renameColumn migration fails for existing column with columns does not exist error

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

Warning: sqlite_query() expects parameter 1 to be resource, string given

Add record for each array elements if missing in table

Spam Filter in Contact Form

using random function but it's displaying duplicates

Upload a file Using PHP and JavaScript

Chunk and transpose a flat array into rows with a specific number of columns

Laravel PHP: multiple project run at the same time [closed]

Creating live search with AJAX and CodeIgniter

Check for PDO Results, If None Display Message, If Yes then Loop Through

Call to a member function fetch_field() on a non-object MySQLiDB

I want to display default profile image if user do not have profile image

sort() not affecting original array while inside foreach loop

About Contact Privacy policy Terms and conditions