connecting to network, auto-entering info

Hey guys,

I just started college a few days ago. To my dismay, my school has a very frustrating wireless network access system. Every time you want to use the network, you need to open up a browser and get re-directed to a login page. Every access, you need to reenter the same username and password. Needless to say, this is becoming very tedious and annoying. Is there any way to write a script to automatically open up Firefox and submit the information? The info is automatically filled in with password manager, it just needs to be submitted. I was thinking that I could make a macro, but I don't really know what I'm doing when it comes to that.

I've been learning Unix for a few months now, and am moderately proficient with the command line. This could be a simple solution, if it is I apologize for the waste of time.

Appreciate the help, thank you for your time.

EDIT: Forgot to mention the frustrating part, the network logs you off after minutes of inactivity, so this a frequent process that needs to be undertaken

For automating Internet Explorer, check out
SAMIE

For automating firefox, check out... I have not tried it.
iMacros for Firefox - Script your Firefox Web Browser

For staying on the network, check out...
BySoft - StayAlive Pro - Keep connection alive and don't get disconnected