From: 7stud -- Date: 2009-05-10T08:27:51+09:00 Subject: Re: CGI help Douglas Seifert wrote: > >> You can't do this in plain ruby: >> >> str = "hello" + >> " goodbye" >> > > The above works just fine. You end up with str being a reference to > "hello > goodby". > Hmmm...I must have done something wrong when I was testing that--because now it works. In that case. the op's problem makes perfect sense. His code was trying to do this: str = "form element1 " + if true "form element2 " + end "submit button" which gives the kEND errors the op was seeing: r1test.rb:5: syntax error, unexpected kEND r1test.rb:10: syntax error, unexpected $end, expecting kEND -- Posted via http://www.ruby-forum.com/.