• 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

Clients authentication and user authentication with laravel

get folder directory from input type file - PHP

Using Associative arrays

PHP - Check if string contains words longer than 4 characters, then include "+ *", and for those shorter than 4 characters include only "*"

Laravel SQL query midnight time not showing

Dropdown with current value from Mysql

Handle error for duplicate entries - PHP/MySQL

Cant seem to get the Pagination to work on my WooCommerce REST API application?

wordpress : How to specify the cause "This site can’t be reached"

Query Optimization, changing the queries in the loop into a single processing query

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

How to loop sql table data inside a html table

How to give apache permission to write to home directory?

MySQL default time format UTC or GMT?

Laravel Route issues with Route order in web.php

About Contact Privacy policy Terms and conditions