Forum Moderators: martinibuster

Message Too Old, No Replies

Adsense cause strange behavior in my pages

Really bad

         

joker197cinque

8:32 am on Mar 29, 2006 (gmt 0)

10+ Year Member



I have two questions for you guys.

QUESTION A:
-----------

I have two pages:

1) Form to fill in
2) Does some stuff (insert one row in a table)

I noticed (and I can reproduce the error) that if in the second page I add Adsense code the row is inserted 3 times :-¦

I also noticed that if I am on the second page and I "refresh" (F5) the page reposting data, it works fine.

But if I "click" submit button from previous page seems like page is executed 3 times, causing 3 rows inserted in table.

My code works, in fact I start to notice this behavior only after adding adsense code.

Have you ever seen this?

QUESTION B:
-----------

Is possible to place 2 or more adsense boxes in on e page? I tried but the second box remains still blank...

Any help much much appreciated.

Best Regards.

F.

TheFlipguy

12:35 pm on Mar 29, 2006 (gmt 0)

10+ Year Member



What is the method you are using for submitting the form? Post or Get?

For new pages or low traffic pages or for pages with little content, no ad in the second block is quite normal.

joker197cinque

12:50 pm on Mar 29, 2006 (gmt 0)

10+ Year Member




What is the method you are using for submitting the form? Post or Get?

Get. What u think about it?

TheFlipguy

12:55 pm on Mar 29, 2006 (gmt 0)

10+ Year Member



if you are using get then most likely the media bot is also visiting the same page with the same values from the form. And obviously the record is getting inserted multiple times.

For example the url of the action page will be something like this: [mywidget.com...]

When you submit the form, one record gets inserted into your form. But the media bot also visits the same page with the same query string and the record gets inserted into your database again. Solution? The simplest would be to change your method to post and handle the case where no values exists.

Flip