Jump to content
James_Parsons

Ruby POST form

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>

Share this post


Link to post
Share on other sites

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

×