From: Rasputin Date: 2003-07-15T10:56:28+09:00 Subject: Re: ruby-specific CGI question (I think) * Tim Hammerquist [0753 01:53]: > Kurt M. Dresner graced us by uttering: > > I'm using sessions and forms in my cgi script. > > > > Unfortunately, for some reason, cgi.form seems to be putting > > some funny stuff at the end of each form I make. (I have > > multiple forms on the page, and it puts it on every one.) The > > funny stuff looks like this: > > > >
> VALUE="session_id">
> > > > First of all: Why is it doing this? > > Session management. Session information has to be passed somehow > to mask the inherent statelessness of the CGI protocol. Bless you, you have saved my sanity. I *knew* it had to be sending it somehow, but couldn't figure out why it wasn't working and just realised I'm not using cgi.rb to write the form (I'm using eruby instead). > > Second of all: How do I make it stop? My forms look like
- that was generated by : <%= cgi.form(method="get") { cgi.text_field("key") + cgi.text_field("value") + cgi.submit("add") } %> what does your ruby code look like ? Are you doing something funky? -- Q: How many Zen masters does it take to screw in a light bulb? A: None. The Universe spins the bulb, and the Zen master stays out of the way. Rasputin :: Jack of All Trades - Master of Nuns