• 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

Find out the name of the last script that included the current one

Substitute integers and dots with regex [duplicate]

Can't call javascript alert alertify library from PHP

Convert regular text to array using notepad++

laravel sanctum Route [login] not defined

Laravel set default language not working

how to see if database exists with PDO [duplicate]

Extract house numbers from address string

browsersync doesn't work with XAMPP

Comma separated list from array with "and" before last element

Get WooCommerce products from specific category

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

How to auto populate preferredCountries from intl-tel-input with db output

html-php form submission after validation through JavaScript [closed]

Open a popup box after receiving result from ajax

About Contact Privacy policy Terms and conditions