>>>>> "Dinos" == Dinos Liolios < dinos007%40yahoo.com">dinos007
yahoo.com> writes:
Dinos> Once again always to the rescue. I am afraid I did
Dinos> not make myself clear on the previous email. My cgi
Dinos> script sets default values as '' and then the database
Dinos> query skips those parameters. My problem is that I
Dinos> want to invoke my cgi script from the URL without any
Dinos> of the parameters except the one I am searching with.
Dinos> Is this possible? So let's say that the form has two
Dinos> cgi params, param1 and param2. So the GET URL would
Dinos> be
Dinos> search.cgi?param1=&param2=something if I wanted to
Dinos> search only by param2. If I type
Dinos> search.cgi?param2=something the cgi script does not
Dinos> work. But that would be very convenient cause my
Dinos> friend needs to set all params to nothing which makes
Dinos> his html code very cumbersome. Is there a way to chop
Dinos> the GET URL?
That is exactly what my code does. I used your example which had a lot of
non-empty things. If you had given a different example URL, it would have
worked more like you wanted.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
< merlyn%40stonehenge.com">merlyn
stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!