On Thu, Sep 22, 2011 at 9:58 PM, Mike M. <freemcg36 / yahoo.com> wrote:
> I have html, css, and javascript background but have never touched Ruby.
> I just took over a Ruby site powered by Radiant CMS. This is what I need
> (besides books and time): I need a simple html and a script to capture
> the values and write them to a text file on the server.

Why do you need Ruby for that when your server apparently works with
PHP already?  It should be possible to modify myform.php to do what
you want, I'd say.

> I want it to add
> the inputs to the file not overwritwe them. Here is my form:
>
> form action="myform.php" method="post">
> p>Your Name: <input type="text" name="name" /><br />
> p>E-mail: <input type="text" name="email" /></p>
> p>Phone Number: <input type="text" name="phone" /></p>
> p>Street Address: <input type="text" name="address" /></p>
>
> p>Where did you enter the contest?
> select name="hear">
> option value="EDGE 102.1">EDGE 102.1</option>
> option value="NOW">NOW</option>
> option value="AM640">AM640</option>
> option value="Other">Other</option>
> /select>
>
> p><input type="submit" value="Enter to Win"></p>
> /form>

Kind regards

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/