PHP unexpected multiple insert requests
I'm building a small web program which add comments on a web page.
When I was testing how the program run, there were unexpectedly many entry for comments.
2 to 5 insert requests were made by a single page request intended to insert one comment.
I tried to sort this out, but I spent hours in vain.
Finally, by comparing the source file which apparently run correctly, I've found out that empty references may be suspicious : like , or which is initially written in the html5 template I used.
I'm not sure what mechanism is working, but I've realized that what and how many requests are to be made when a user make request a web page.
When I was testing how the program run, there were unexpectedly many entry for comments.
2 to 5 insert requests were made by a single page request intended to insert one comment.
I tried to sort this out, but I spent hours in vain.
Finally, by comparing the source file which apparently run correctly, I've found out that empty references may be suspicious : like , or which is initially written in the html5 template I used.
I'm not sure what mechanism is working, but I've realized that what and how many requests are to be made when a user make request a web page.
Comments
Post a Comment