• 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

Laravel csrf token mismatch for ajax POST Request

Laravel 8 factory state afterCreating

Converting alphabet letter to alphabet position in PHP [duplicate]

Laravel implode array items to new lines

Laravel lang slug in url

PHP rotate matrix counter-clockwise

Laravel update hasMany relationship using saveMany

I want a way to give path to my files which are outside of public folder in laravel

printing all running session variable in laravel 5.1

Stop caching for PHP 5.5.3 in MAMP

Laravel passport auth token not working after moving to different server

"Mixed content blocked" when running an HTTP AJAX operation in an HTTPS page

Pagekite error: FAIL: localhost:8080 is down

How to get total pages of PDF with FPDF?

JQuery content editable div and text box on submit not sending POST

About Contact Privacy policy Terms and conditions