PHP methods to prevent repeated submissions of form

time:14-10-14 forum:PHP tools and code
  http://blog.csdn.net/fgdfgasd/article/details/6980696

[code].lt; Me ();
?.gt;
.lt;! DOCTYPE HTML PUBLIC.Quot; -//W3C//DTD XHTML Transitional//EN.quot; Ot; content=.quot; text/html; charset=gb2312.quot; /.gt;
.lt; title.gt; to prevent forms from repeating.Lt; /title.gt;
.lt; N check_form (fobj) {
var error = 0;
var error_message =.Quot;.Quot; = error_message.Quot; this form has been submitted to.\n, please wait for the server to be patient with your request.\n\n.quot;
error=1;
}

if (error = = = 1) {
>; / / / / / change submission status. }
}
--.gt;
.lt; /script.gt;
.lt; /head.gt;
.lt; body.gt; Php
if (@$_POST.#91;.Quot; faction.quot;.#93; ==.quot; submit.quot; ||@$_GET.#91;.Quot; faction.quot;.#93; > > / > * * * * * * * * * * * * / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / * * * * / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / * * * * / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / * * * Br / > / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / Ot;.#93;..quot;.Lt; br/.gt; \n.quot;;
echo $_POST.#91;.Quot; formtext.quot;.#93; .lt; br/.gt; \n.quot;
echo.Quot;.Lt; /body.gt;.Lt; /html.gt;.Quot;
! R />.lt; input name=.quot; fpsess.quot; type=.quot; hidden.quot; value=.quot;.Lt; PHP echo $_SESSION.#91; Name=.quot; formtext.quot; id=.quot; formtext.quot; type=.quot; text.quot; value=.quot;.Quot; /.gt;
.lt; input;
  • 2

prev:Use of get, request, and post in PHP next:PHP simulation post submit data, can be ...
post comment
Notice



approved   The first competition school in Chin...   These 9 kinds of scary symptoms foun...   A 9 year old student corrected the w...   A survey of lonely elderly people in...   Salted pickled vegetables are carcin...
rand   Using CURL instead of file_get_conte...   Use.Htaccess to prevent images from ...   Encryption and decryption of PHP fil...   PHP hidden data, MD5 encryption, int...   Processing method of Chinese charact...
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com