From: Toby Rodwell Date: 2007-05-17T18:19:26+09:00 Subject: Re: CGI and re-direction Doug Phillips wrote: >> So my question is, how do I redirect back to the first page >> from the second? Or is there another (better) way to achieve >> the same result (perhaps by using just the one page) > > Just post to the same script, and have it check whether it has been > posted to, and, optionally, an action parameter (in case a previous page > posts to it) to tell it which action needs to be taken. > > -Doug Thanks for the quick reply. If I use the same script don't I have problems using cgi.params, as on the first visit they don't exist? Or do I use an if..then to choose between two pages (one used pre-posting and the other post-posting(!)) As you can tell, I'm not a programmer per se, so any examples (or pointers to examples) would be very much appreciated. thanks again -- Posted via http://www.ruby-forum.com/.