• 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

Add bold text and line break into Laravel Notification Email

Hi, I am making a contact form thingy, and my php isn't working any reason why?

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'test' in ... (How do I fix that? Using PHP)

I want to display a sweetalert after the inserting of data in my database

Only on Firefox "Loading failed for the <script> with source"

Send POST data via raw JSON with Postman

How can i hide dt if dd got empty value

Laravel Mix Uncaught ReferenceError: $ is not defined

Php - Sum up the numbers in an array one by one

Select option from dropdown menu with PHP and mySql

How to trim a video by 4 fragments to 4 seconds using the PHP-FFMpeg?

WooCommerce: Add/display Product or Variation custom field everywhere

PHP array, move keys and values to new array, but mix it up

How avoid Moved Permanently The document has moved here

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

About Contact Privacy policy Terms and conditions