HomeSunday, June 24, 2018, 01:42:16
2

Preventing multiple form submissions

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

PHP Jquery Form allow your visitors to contact you directly from your website.

PHP Fwrite : fwrite

php write to file - how to write data to a file using the php frwite function

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.

Email to Friend - PHP Script

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

PHP Tutorials

Useful step-by-step PHP tutorials for beginners

Link Base Pro :: Free Link Index Script

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.

Adodb Recordcount Example

RecordCount returns the number of rows in the record set.

Tell A Friend with Captcha

This form allows your visitors to suggest your site to a friend. It features an HTML email format and an admin notification email.

RSS, MySQL & Smarty

Smarty > Publishing MySQL Data in RSS 2.0

How to set up password for phpMyAdmin in Wamp Server

Password for phpMyAdmin in Wamp
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.