From: john smith Date: 2012-11-05T04:41:40+09:00 Subject: login web page using mechanize new to ruby, love the language. read programmatic programmers guide to get started and i understand the basics of ruby language. im just starting to learn gems, ive played with mysql, crypt, and now mechanize. I have yet to write a successful program with any of the gems but im hooked on mechanize. ok so here is what im trying to do... i am a student in itt tech online course. to get credit for attendance i have to send emails everyday through the webpage. so i thought "yesss!!! i can write a program using mechanize to do this for me." First question: is that even possible? next i can get to the webpage and can print the forms but dont know how to fill it out to submit it. here is my code and what i see when executed: #THIS IS MY CODE require 'rubygems' require 'mechanize' agent = Mechanize.new page = agent.get('http://www.distance-education.itt-tech.edu/') form = page.forms.each do |form| pp form end ================================================================= #THIS IS WHAT IS PRINTED OUT #