• 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

selected value from the listbox in php

Auto increment id JSON

Warning: Unknown: Failed to write session data using user defined save handler. (session.save_path: ) in Unknown on line 0

Converting alphabet letter to alphabet position in PHP [duplicate]

What will the best solution for this multiple optional filter?

How to create a cookie to store the timestamp of when a page is first loaded with php

Woocommerce redirect after add-to-cart error

How to insert Google Adsense Code in PHP script?

XSS attack still works despite htmlspecialchars() doing its work

laravel sanctum Route [login] not defined

Return new collection without modifying original collection

Laravel print last executed SQL query with Query log

How to send image,audio or video through the WhatsApp API - PHP

Handling expired token in Laravel

How to use a PHP MVC Controller, one thats invoked by calling a URL, to call and execute more than one function? [duplicate]

About Contact Privacy policy Terms and conditions