• 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

PHP echo values of all sub keys [duplicate]

get folder directory from input type file - PHP

Passing PHP JSON to Javascript: echo json_encode vs echo json declaration

how to get the header value, if we don't know the value because the value is random from the server

Dropdown with current value from Mysql

PHP Form Not Inserting

Convert regular text to array using notepad++

Using if(isset($_POST['submit'])) to not display echo when script is open is not working

Wordpress add responsive srcset header image to theme

How to display MySQL table using php and edit it in a web browser

How to set time with DateTime modify?

How to make autocomplete work in foreach php loop? (vscode, intellisense)

Make Shipping Method fields Mandatory on Woocommerce checkout page

How to submit the custom form data in database in WordPress without plugin using ajax?

How to get transaction details in notify_url page in paypal

About Contact Privacy policy Terms and conditions