• 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

send email using gmail-api and google-api-php-client

Shopify password update using Shopify API

Limit WooCommerce products in cart only from one custom taxonomy

Laravel after login Two factor not working

How to keep value of selected value after form submission?

CodeIgniter 3 is generating a session file on each request, why?

httpd.conf on Windows: can't locate API model structure `php8_module`

Woocommerce product attributes with hierarchy like categories

display WooCommerce “Add to cart” button with short-code [add_to_cart ] dynamically

PHP array_filter with arguments

Saving Data from form to database using AngularJS and php

WordPress Security Standards want me to escape my html, but how to do it correctly?

How to get an Array value inside an object in an array Php [duplicate]

VichUploaderBundle error "Expected argument of type "File", "NULL" given" when submitting the form without selecting any file

How can I create a Download Page with post php method?

About Contact Privacy policy Terms and conditions