Ad block is installed and active. Please support us by disabling it.
HomeThursday, September 21, 2017, 03:18:03
2

Preventing multiple form submissions

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

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.

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

Bookmark Script

Allow your users to easily bookmark your site, by clicking on a link on the page.

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.

php Array

These functions allow you to interact with and manipulate arrays in various ways. Arrays are essential for storing, managing, and operating on sets of variables.

PHP $_SESSION

Session_start creates a session or resumes the current one based on a session identifier passed via a GET or POST request, or passed via a cookie.

Captcha V2 - Free PHP Script

PHP Captcha protection image Version 2, - Requirement(s): PHP Server, GD Library

Syntax highlighting in Smarty

Syntax highlighting for Smarty - Google Code Prettify

Link Base 1.1. - Free PHP Link Index Script

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

Inserting form data in MySql table

Inserting form data in MySql table with PHP
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.