• 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 sanctum Route [login] not defined

PHP/HTML: Creating A SubMenu

How to loop a tree array with unknown depth and get array blocks?

How to get quarter for future date using Carbon?

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

Parsing JSON File to array in PHP

Laravel Sanctum CSRF not authenticating

getting error while enter Command => php artisan route:list

Can't call javascript alert alertify library from PHP

How to implement placeholder in a php file for moodle plugin?

Send same name multiple checkbox values via ajax

Prevent blank space in pdf pages (DomPdf)

Login if user is active using Laravel Breeze

Webscraping Symfony/Panther: Can't get HTML

How to create custom authentication in laravel 8?

About Contact Privacy policy Terms and conditions