• 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 do I refresh a DIV content?

Multiple order by in WooCommerce

Do I need to install `fxp/composer-asset-plugin` if I'm not doing front-end development

Create a new line whenever an array value reaches more than 10 characters

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

I can't delete my image when it is liked because of the foreign key in mysql

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

Confirm Leave on External Links in Wordpress

Telegram bot doesn't answer

phpMyAdmin ERROR: mysqli_real_connect(): (HY000/1045): Access denied for user 'pma'@'localhost' (using password: NO)

html-php form submission after validation through JavaScript [closed]

phpseclib 2.0 can not use Composer to create autoload

PHP: How to raise number to (tiny) fractional exponent?

Send same name multiple checkbox values via ajax

get folder directory from input type file - PHP

About Contact Privacy policy Terms and conditions