command for login dosnt work

07/06/2011 18:55 SuperJail#1
hi,
i want my script to login on a site. thats the source

<button type="submit"
name="submit"
value="submit"
tabindex="3">Submit</button>

why dostnt work this command?

 
$oForm = _IEFormGetCollection($oIE,0)
_IEFormSubmit($oForm)
07/06/2011 22:52 BlackHybrid#2
_IEAction(_IEGetObjByName($oIE,"submit"),"click")
07/07/2011 14:09 SuperJail#3
^^ thx for ur help...

but i would like to know y it dosent work the way i did it. can u tell me???
07/07/2011 14:26 BlackHybrid#4
Maybe you selected the wrong form.