Ad block is installed and active. Please support us by disabling it.
HomeSunday, November 19, 2017, 13:50:53
2

Preventing multiple form submissions

Tuesday, February 10, 15, 01:03:18, 3 Yaers Ago Via wain, Hits: 2910
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

PHP imagecreate

imagecreate() returns an image identifier representing a blank image of specified size.

Create dynamic Web Pages with PHP & MySQL

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

PHP Form Action Self Submit

PHP form action self submit tutorial, requirement(s): PHP server

Captcha V1 - Free PHP Script

An anti-spam form protection image written in PHP, Version: 1.1.

PHP Links Script 1.1.

This script allows you to 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. The script is easy to customize to suit your needs.

Convert pdf to image - mpdf

Convert pdf file to jpg with php and mpdf

PHP Mail

Sends an email.

PHP Form Validation

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

PHP/MySQL Bookmarklet - PHP Tutorial

PHP/MySQL bookmarklet, bookmark current page, PHP/MySQL tutorial.

PHP Str_replace - PHP Tutorial

This function returns a string or an array with all occurrences of search in subject replaced with the given replace value.
About Author

wain

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