|
Subject:
|
Double DB insert using body.onload
|
|
Posted By:
|
needlz
|
Post Date:
|
2/19/2006 2:26:25 AM
|
I created a variant of the "XMLHttp Examples" in Chapter 2 to execute the oXmlHttp get request from body.onload and return the record id. It works perfectly with a user initiated link but when using the body.onload, it inserts 2 records instead of 1. Is there another way to have the page automatically call the function which would prevent 2 records from being inserted?
thanks.
|
|
Reply By:
|
needlz
|
Reply Date:
|
2/20/2006 3:18:36 PM
|
Doh! Ignore this question/post... I was accidentally calling the mysql_query twice in my code.
|