• 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

How can I access an array/object?

Lumen - Postgresql setup - Composer

Uploading video to Youtube using Youtube Data API V3 and Google API Client PHP -- getting 401 (unauthorized) message

How do I enable error reporting in Laravel?

How do I refresh a DIV content?

Search for array row with specific column value and return another value from qualifying row

Laravel 8 factory state afterCreating

Laravel UUID generation

Detect if PHP session exists

PHP Imap , php 7.4.3 on mac osx catalina

Insert And Retrieve Data in MySQL with $.post Noob Question

PHP Warning: Module already loaded in Unknown on line 0

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Fatal error: Trait 'LaminasDbAdapterLaminasDbAdapterAdapterInterface' not found in /var/www/vendor/laminas/laminas-db/src/Adapter/Adapter.php

selected value from the listbox in php

About Contact Privacy policy Terms and conditions