Ad block is installed and active. Please support us by disabling it.
HomeWednesday, April 25, 2018, 08:54:50
2

Preventing multiple form submissions

Tuesday, February 10, 15, 01:03:18, 3 Yaers Ago Via wain, Hits: 5844
Preventing multiple form submissions
Code:
<?php @session_start();
if(isset($_POST['submit']))
{
if (!isset($_SESSION["reload"]))
$_SESSION["reload"] = 0;
$_SESSION["reload"] = $_SESSION["reload"] + 1;
if ($_SESSION["reload"] > 1)
{
echo"Error";
die;
}
}else{
?>
<form name="maForm" action="index.php" method="post">
<input type="submit" value="Submit" name="submit">
</form>
<?php } ?>

Sign In

Sponsor

Related

Bookmark Current Page - PHP Tutorial

Bookmark current page with PHP example.

Smarty Paginate Example - Smarty Pagination with PHP

Smarty Paginate Example, Smarty Pagination with PHP. SmartyPaginate: a class/plugin for data set pagination within the Smarty template environment

PHP Date Examples

Returns a string formatted according to the given format string using the given integer timestamp or the current time if no timestamp is given.

PHP Form Validation

PHP form validation :: PHP tutorial, requirement(s): PHP Server

Link Base 2.0.

Manage your links using a MySQL database. It features easy install, user submission, and an admin panel to add, edit and remove categories and links.

Jquery PHP Contact Form

This script allows your visitors to send you an email directly from your website.

Filter Words in PHP - PHP Tutorial

Filter bad words in PHP, requirement(s): PHP server

Imageline

Draws a line between the two given points.

PHP Write to File

PHP Write to File :: PHP Tutorial, requirement(s): PHP server

Create dynamic Web Pages with PHP & MySQL

Create dynamic Web Pages with PHP & MySQL, Requirement(s): PHP Server, MySQL
About Author

wain

Date Registered: Sun, Feb 8, 15
Last Time Online: Sun, Mar 18, 18
So far has created 115 entries.
wain
This author has not yet filled in any details.