Reply
double html form submissions
Old 07-18-2007, 07:31 AM double html form submissions
Novice Talker

Posts: 8
Trades: 0
Hello people:

When the html page showed is the result of a html form submission with method "GET" the html form submission is send it twice or sometimes three times.

How can I protect my application for double html form submissions?

Thanks.
f.
constela is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 07-18-2007, 07:34 AM Re: double html form submissions
Novice Talker

Posts: 8
Trades: 0
Any suggestion is welcome.
constela is offline
Reply With Quote
View Public Profile
 
Old 07-18-2007, 06:05 PM Re: double html form submissions
sigmahotels's Avatar
Ultra Talker

Posts: 255
Name: Mark
Trades: 0
wrong thread, plus I don't know what you mean
__________________
SigmaHotels
We search for you
Dubai Hotels
sigmahotels is offline
Reply With Quote
View Public Profile Visit sigmahotels's homepage!
 
Old 07-19-2007, 12:24 AM Re: double html form submissions
shabbirbhimani's Avatar
Application Developer

Posts: 957
Name: Shabbir Bhimani
Location: at Go4Expert.com
Trades: 0
Probably the link is clicked twice / thrice
shabbirbhimani is offline
Reply With Quote
View Public Profile Visit shabbirbhimani's homepage!
 
Old 07-19-2007, 04:37 AM Re: double html form submissions
Novice Talker

Posts: 8
Trades: 0
Quote:
Originally Posted by shabbirbhimani View Post
Probably the link is clicked twice / thrice
Not, the problem is that if I send an html form with method "get" for example:

Code:
http://myaplication.com/insert?text=value
The same petition is done for the AdSense's script and the insert is done multiple times, and the text "value" is inserted multiple times because the AdSense petitions.

But, how can I protect my application for this kind of AdSense petitions?
constela is offline
Reply With Quote
View Public Profile
 
Old 07-19-2007, 08:29 AM Re: double html form submissions
sigmahotels's Avatar
Ultra Talker

Posts: 255
Name: Mark
Trades: 0
whats an adsense petition?
__________________
SigmaHotels
We search for you
Dubai Hotels
sigmahotels is offline
Reply With Quote
View Public Profile Visit sigmahotels's homepage!
 
Old 07-19-2007, 08:40 AM Re: double html form submissions
Novice Talker

Posts: 8
Trades: 0
Quote:
Originally Posted by sigmahotels View Post
whats an adsense petition?
What I mean with a Adsense's petition is the petition that the AdSense's bot send to my application for know the content of the page where the script is inside.
constela is offline
Reply With Quote
View Public Profile
 
Old 07-19-2007, 12:12 PM Re: double html form submissions
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
Ok now I think everybody is confused.

1/ What is your application, is it?
A set of scripts running on a web server.
a program running or your home/work/office computer.
You application to be accepted for displaying Adsense.

2/ What is an Adsense petition?
And PLEASE don't tell us it is a petition by the Adsense bot.
Explain what you mean.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-19-2007, 01:30 PM Re: double html form submissions
Novice Talker

Posts: 8
Trades: 0
This is my application:

Code:
 <form action="insert.php" method="get"> 
  <input type="text" name="text_to_insert"/> 
  <input type="submit"/>
 </form>
The url generated when this form is send is this:

Code:
 http://myaplication.com/insert.php?text_to_insert=theText
If in the page target "insert.php" there is an AdSense script the AdSense tries to get the page to show contextual ads, and for that send a petition like the url where it is:

Code:
 http://myaplication.com/insert.php?text_to_insert=theText
This is what I call an Adsense's Petition. The petition is done once or twice, and this means that the "insert.php" is called for the Adsense script what means the "theText" is inserted twice or three times.

This is my problem.

Is there any suggestion to protect my application for this kind of Adsense's petitions?

Last edited by constela; 07-19-2007 at 01:32 PM..
constela is offline
Reply With Quote
View Public Profile
 
Old 07-19-2007, 04:22 PM Re: double html form submissions
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
the Adsense bot does NOT submit forms.
We DO NOT KNOW what you mean by petition

This is what a petition is. http://www.google.com/search?sourcei...#37;3apetition

Pick one that resembles what you mean.

OR give us a URL and we'll try to work out what you mean.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-20-2007, 05:16 AM Re: double html form submissions
Novice Talker

Posts: 8
Trades: 0
This is what I mean with petition:

apache log:
Code:
66.249.65.145 - - [04/Jul/2007:12:03:01 +0200] "GET /microblog/insert/step02.do?text=hola HTTP/1.1" 200 12847 "-" "Mediapartners-Google/2.1"
And this is also an Adsense bot submit.
constela is offline
Reply With Quote
View Public Profile
 
Old 07-20-2007, 05:50 AM Re: double html form submissions
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
It is not a "petition" or a submit, it simply the normal HTTP request that ALL user agents make to any page on a webserver.

If you read your logs more closely you will every page request will be a GET method
The only time this will differ is when a form IS submitted using the POST method or a user agent does a header only test (HEAD)
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-20-2007, 06:05 AM Re: double html form submissions
Novice Talker

Posts: 8
Trades: 0
Ok, now that I have achieve to explain myself:

Any suggestion for protect my application of this 'Adsense's Http Request' which does double 'html form submits'.

And, if you are on the way to ask me what is an 'html form submit' I'll start to cry .
constela is offline
Reply With Quote
View Public Profile
 
Old 07-20-2007, 07:38 AM Re: double html form submissions
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
There is NO form being submitted by the Adsense bot

the Adsense bot cannot!!! submit forms

Whatever is happening it is NOTHING to do with the Adsense bot submitting forms

I'll explain something;

The Adsense ads are generated when the adsense javascript is executed by a client browser that is javascript enabled. The Adsense bot does not visit any pages UNTIL the javascript runs

So the multiple request are NOT being caused by the Adsense bot.

Can I ask, is this a problem where multiple inserts are being done to a database from a form?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-20-2007, 08:36 AM Re: double html form submissions
Novice Talker

Posts: 8
Trades: 0
Quote:
The Adsense ads are generated when the adsense javascript is executed by a client browser that is javascript enabled. The Adsense bot does not visit any pages UNTIL the javascript runs
I know chrishirst, I know.

But for my application the 'visit' of this page:

Code:
66.249.65.145 - - [04/Jul/2007:12:03:01 +0200] "GET /microblog/insert/step02.do?text=hola HTTP/1.1" 200 12847 "-" "Mediapartners-Google/2.1"
is the same that submit this form:

Code:
 <form action="/microblog/insert/step02.do" method="get"> 
  <input type="text" name="text"/> 
  <input type="submit"/>
 </form>
And the 'Adsense's visit', or 'Adsense's petition', or Adsense's Html Request', or whatever you want to call it is exactly this:

Code:
http://myaplication.com/microblog/insert/step02.do?text=hola
And I don't mind if the petition (sorry Http Request) is done before or until the javascript runs.. the point is that the Asense's visit is done. And my application receives the petition (or whatever you want to call it) and the double insert is done.

So, Is there any suggestion for protect my application against the 'Adsense's visits' that my application receive and produce doubles inserts?
constela is offline
Reply With Quote
View Public Profile
 
Old 07-20-2007, 09:05 AM Re: double html form submissions
chrishirst's Avatar
Super Moderator

Posts: 22,260
Location: Blackpool. UK
Trades: 0
TAKE THE ADSENSE CODE OFF THE PAGE THAT DOES THE INSERT
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Growing old is mandatory - Growing up is optional
Code Samples | People Counting System | Bits & Bobs
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to double html form submissions
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.19111 seconds with 13 queries