Jump to content

Ruby POST form


James_Parsons

Recommended Posts

This is the same exact question here in http://w3schools.invisionzone.com/index.php?showtopic=46321. I just want to know how to do it in ruby. I just want to know how to use POST to retrieve info form a textbox and write it to a file called info.txt. just so you don't have to run back and forth between pages here is the html: example.htm

<!DOCTYPE html><html><head>  <title>POST Example</title></head><body><form name="example" method="POST" action="TheRubyFile">   <input type="text" name="value" />   <input type="submit" name="submit" value="Submit It"/></form></body></html>

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...