🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #79

[ruby] Zmienne przeslane z formularza i przez adres WWW

#79
From: treewood
Date: Thu, 27 Jul 2006 14:06
18 lines
1643 bytes
Chcialbym pobrac w ruby (nie w railsach) dane przeslane z formularza
lub przeslane metoda GET z adresu WWW.
Czy jest mozliwosc ich pobrania? Grzebie troche po necie ale ciezko mi
znalezc te informacje.

Przykladowo mam formularz:

<form action="test.rhtml" method="get">
  <input type="text" name="sName" value="" />
  <input type="submit" value="ok" />
</form>

i chce by po przeslaniu wyswietlilo mi zmienna sName przeslana metoda
GET lub POST (przykladowo w PHP byloby to $_POST['sName'] i
$_GET['sName'])

jak nazywac sie bedzie zmienna by wyswietlic ja bo napewno nie <% print
sName %>
Technical Details
Message-ID: <1154009175.794758.244890@75g2000cwc.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newshub.sdsu.edu!postnews.google.com!75g2000cwc.googlegroups.com!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.gazeta.pl!newsfeed.pionier.net.pl!newshub.sdsu.edu!postnews.google.com!75g2000cwc.googlegroups.com!not-for-mail
From: "treewood" <spam@witaj.net>
Newsgroups: pl.comp.lang.ruby
Subject: [ruby] Zmienne przeslane z formularza i przez adres WWW
Date: 27 Jul 2006 07:06:16 -0700
Organization: http://groups.google.com
Lines: 19
Message-ID: <1154009175.794758.244890@75g2000cwc.googlegroups.com>
NNTP-Posting-Host: 83.30.166.226
Mime-Version: 1.0
X-Trace: posting.google.com 1154009181 1509 127.0.0.1 (27 Jul 2006 14:06:21 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 27 Jul 2006 14:06:21 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; pl) Opera 8.54,gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: 75g2000cwc.googlegroups.com; posting-host=83.30.166.226;   posting-account=5elpBA0AAADAVgtGJIuKvDJ3ISsCbF5M
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit