Thank you but the number needs to be a 4-digit integer only, if its to be stored in the database table correctly.
pin = int( htmlpage.encode("hex"), 16 ) I just tried whayt you gace me This produces a number of: 140530319499494727...677522822126923116L Visit http://superhost.gr to see that displayed error. I think it Why did you use "hex" for? to encode the string to hexarithmetic? what for? -- http://mail.python.org/mailman/listinfo/python-list