• 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

possible options to create pdf file using html elements to generate invoice in php and codeigniter

Twig - How to check if variable is a number / integer

PHP only Hit Counter?

Add New Parameter to Existing URL using htaccess

How to fix this error : Ask your hosting provider to use PHP 7.2.5 or higher for both HTTP and CLI?

how to hide previous markers when new markers added in google map javascript api

PHP: Telegram Bot: Insert line break to text message

Can't exclude directories from .htaccess mobile redirect?

How to create a video stream from a single dynamic image in PHP

enroll_table three field fetch to payment form to create payment field in laravel 5.5

How to KeyBy where multiple items have the same key

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

PHP sort array of objects by two properties

Refresh specific HTML content that retrieves data from MySQL

Read users and passwords from a txt file

About Contact Privacy policy Terms and conditions