Hi all, I have made function like this: ---------------------------------- function sen(a) //fj-a za slanje formi i blokiranje tipke { window.document.forms[0].submit(); document.all.item(a).disabled=true; } ---------------------------------- this function works ok. i mean it sends form to server, and i can see it is disabling the botton, but something is wrong... i have error like this: ----------------------------------/ Microsoft OLE DB Provider for SQL Server error '80040e14' Line 1: Incorrect syntax near '='. /novi/oso.asp, line 12 ----------------------------------/ in backend i have: - IIS 6 - ASP pages - SQL server i think that there is diference in form sendig whit this function whit button and normal type=submit method. if anyone know what do i do wrong, i would be very greatfull ty -k.p.