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.


Go to topic 33649

Return to index page 365
Return to index page 364
Return to index page 363
Return to index page 362
Return to index page 361
Return to index page 360
Return to index page 359
Return to index page 358
Return to index page 357
Return to index page 356