Forum Moderators: martinibuster
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.
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