List Info

Thread: Re: Skip get arguments on the URL




Re: Skip get arguments on the URL
country flaguser name
United States
2007-08-16 15:28:29

Hi Randal,

I think my bad english is getting on the way. What
you have done is capturing the URL and breaking it. I
actually want my original cgi script to work even if
somebody invoked it without listing all the arguments.
That way people can link to dynamic pages generated
by the cgi script without having to link to these
enormous URLs. For example if I punch in the URL on a
web browser
http://www.genomesonline.org/search.cgi?org_domain=ARCHAEAL&selection=submit+search
my cgi script does not work. I actually have to
mention all the other arguments with the default or
empty values like this:
orgcol=org&domcol=dom&typecol=type&sizecol=size&infocol=info&datacol=data&instcol=inst&analycol=analy&contcol=contact&statuscol=status&goldstamp=ALL&gen_type=ALL&org_name1=genus&gensp=&org_domain=ARCHAEAL&org_status=ALL&size2=ALL&org_size=Kb&;gen_gc=ALL&gen_seqmethod=ALL&gen_temperature=ALL&gen_ph=ALL&gen_symbiont=ALL&phylogeny2=ALL&gen_institution=ALL&gen_funding=ALL&gen_data=ALL&cont=ALL&gen_country=ALL&gen_pheno=ALL&;gen_habitat=ALL&gen_disease=ALL&gen_relevance=ALL&gen_avail=ALL&selection=submit+search

The question is if there is a way to invoke a cgi
script by skipping the rest of the arguments.

Thanx again
Dinos

--- "Randal L. Schwartz&quot; < merlyn%40stonehenge.com">merlynstonehenge.com>
wrote:

> >>&gt;>> "Dinos" == Dinos Liolios < dinos007%40yahoo.com">dinos007yahoo.com>
>; writes:
>
> Dinos> Once again always to the rescue. I am afraid
&gt; 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
&gt; Dinos> be
> Dinos> search.cgi?param1=&amp;param2=something if I
> wanted to
> Dinos> search only by param2. If I type
>; Dinos> search.cgi?param2=something the cgi script
&gt; does not
> Dinos> work. But that would be very convenient
> cause my
> Dinos> friend needs to set all params to nothing
> which makes
&gt; 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">merlynstonehenge.com>
> <URL:http://www.stonehenge.com/merlyn/>
&gt; Perl/Unix/security consulting, Technical writing,
> Comedy, etc. etc.
>; See PerlTraining.Stonehenge.com for onsite and
> open-enrollment Perl training!
>

www.i-dinos.com

__._,_.___
Recent Activity
Visit Your Group
SPONSORED LINKS
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Find Enlightenment

Yoga groups and

resources on

Yahoo! Groups.

Re: Skip get arguments on the URL
country flaguser name
United States
2007-08-17 01:51:59

>>&gt;>> "Dinos" == Dinos Liolios < dinos007%40yahoo.com">dinos007yahoo.com> writes:

Dinos>; I think my bad english is getting on the way. What
Dinos> you have done is capturing the URL and breaking it. I
Dinos&gt; actually want my original cgi script to work even if
Dinos> somebody invoked it without listing all the arguments.

Oh... so you have the *short* version for input and want to generate
the *long* version for output?

Yeah, that really wasn't clear.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<; merlyn%40stonehenge.com">merlynstonehenge.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!

__._,_.___
.

__,_._,___
[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )