• 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

CONCAT columns with Laravel 5 eloquent

Problems getting instance of UploadedFile in Yii2

Too few arguments to function PendingResourceRegistration::name(),1 passed in C:xampphtdocsproject outesweb.php on line 18 and exactly 2 expected

CodeIgniter 4: Like and Dislike Functionality

Laravel - How to properly generate unique slugs from article titles?

curl returning 301 error after migrating to https

Laravel Displaying image from database

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

How to install php_imagick on wamp64

Laravel Livewire: jQuery not working in child component loaded via @if statement

sqlsrv_num_rows() expects parameter 1 to be resource, boolean given

Eloquent insert id with sequence next value

How in Laravel run JavaScript code stored in php variable?

Symfony Make:Migration : The metadata storage is not up to date, please run the sync-metadata-storage command to fix this issue

Symfony 4: how to allow dynamic values for array nodes in bundle configuration?

About Contact Privacy policy Terms and conditions