A hopefully simple form problem
by "Rajnish Bhaskar" <9705228b(at)student.gla.ac.uk>
|
| Date: |
Thu, 23 Mar 2000 20:43:39 -0000 |
| To: |
hwg-basics(at)mail.hwg.org |
| Cc: |
rebecca(at)monsterweb.org |
| In-Reply-To: |
|
| |
todo: View
Thread,
Original
|
|
Hi Rebecca
> The problem is that I've been asked to make it so that the guest can
> select an item from a list [using radio buttons] and would be sent to a
> different URL based off of the selection. This is being done internally on
> an intranet and everyone uses IE5.0, so supporting other browsers is not
> necessary in this case.
Although I'm not familiar with CGI, a simple Java servlet would do the job,
if your server supports them. What you would do is have the
radiobuttons each with a different value (probably numeric), and point the
form to a servlet. In the servlet, all you would do is retrieve the value from
the form, run it through a case {} statement, and redirect off to the
required location.
If you need more details (or, indeed, a sample servlet), don't hesitate to
email me.
Raj.
------------------------------------------------------------------
__ __
| | | | Rajnish Bhaskar, University of Glasgow
|_ / |_ / E-Mail: rajy(at)i.am
| \ | \ Home Page: http://i.am/rajy
| \ |__/
What you have here is an example of that well known phenomenon, A Bookshop
Assistance Who Knows Buggerall But Won't Admit It
(probably some kind of arts graduate).
-- (Terry Pratchett, alt.fan.pratchett)
HTML: hwg-basics mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.