• 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

MySQL upgrade causing unexpected results on simple WHERE clauses

how to remove white space in select 2

Make Shipping Method fields Mandatory on Woocommerce checkout page

How to load Codeigniter 4 lang file into an array variable

PHP Startup: Unable to load dynamic library 'openssl' in Ubuntu

How can I make good efficent AJAX live forms with just jQuery and

500 Internal Server Error on Ajax request. Not sure the origin of the problem

Laravel SQL query midnight time not showing

jQuery Ajax Post with data

MySQL - Connection failed: No route to host

Pass an image through AJAX [duplicate]

PHP Array split string and Integers

WHM Enabling mod_rewrite

PHP Print to Network Printer

XSS attack still works despite htmlspecialchars() doing its work

About Contact Privacy policy Terms and conditions