Ruby form, how to check submit event

Hi,

How can I catch event on this forms, I bit new to this, could not find
any good example, I tried to use cgi.form.['name…] but it doesn’t work.

Thanks for help
Dai

============================================================

if 1 > 2 ###cgi.form.[‘user name’].empty? ???
msg1 = “Please enter info correctly”
msg2 = “”
else
msg1 = "Welcome username: "
msg2 = "You emails is: #{email} "
end

puts “Content-type: text/html”
puts "Server: Apache/1.3.3.7 (Unix) (Red-Hat/Linux) # Server
information "
puts

puts <<HTML

Ruby form test body {background-color:#111;color:#aff;font-family:Helvetica,Arial,Verdana,sans-serif;font-size:12px;} h1 {color:#aaa}

This is a form!



Email



#{msg1}
#{msg2}
HTML

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs