what my problem with my code ? i try many combine but the compiler said ERROR
import mechanize
import itertools
br = mechanize.Browser()
br.set_handle_equiv(True)
br.set_handle_redirect(True)
br.set_handle_referer(True)
br.set_handle_robots(False)
br.open("http://www.zixem.altervista.org/SQLi/login_do.php?")
for x in range(1,5):
br.form.action( "value" )
br.form['password'] = '%d' %(x)
print "Checking",br.form['password']
response=br.submit()
if response.geturl()=="http://www.zixem.altervista.org/SQLi/login.php":
#url to which the page is redirected after login
print "Correct password is %d" % (x)
