event after form submit completion?
Posted: Thu Apr 26, 2012 10:11 pm
Is there any such event that can do something after the form submit is finished?
Thanks.
Thanks.
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
requinix wrote:What do you mean by "finished"?
yes, reload.requinix wrote:Okay... How about this: does submitting the form reload the page?
Code: Select all
<?php
if (form was submitted) {
insert new book record;
add the image to the record;
etc;
}Code: Select all
<?php
// set up fake form values
$_POST["field1"] = "value";
$_POST["field2"] = "value";
ob_start(); // start output buffering so output isn't sent to the browser
include "original_file.php";
ob_end_clean(); // discard everything