yes... by scripting a .htaccess in which (if you got the right permissions to do so) you can map URL with a script, if i'm not clear, see the Apache section that explaines about this point (I Hope you use Apache
)
see ya, have a nice day,
Sylvain
----
Sylvain PASCAL LACOMBE
sylvainpascal%40yahoo.fr">sylvainpascal
yahoo.fr
----- Message d'origine ----
De : Dinos Liolios < dinos007%40yahoo.com">dinos007
yahoo.com>
À : Randal L. Schwartz < merlyn%40stonehenge.com">merlyn
stonehenge.com>
Cc : perl-beginner%40yahoogroups.com">perl-beginner
yahoogroups.com
Envoyé le : Jeudi, 16 Août 2007, 22h28mn 29s
Objet : Re: [PBML] Skip get arguments on the URL
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.genomeso nline.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&statusco l=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_seqmetho d=ALL&gen_ temperature= ALL&gen_ph= ALL&gen_symbiont =ALL&phylogeny2= ALL&gen_institut ion=ALL&gen_ funding=ALL& gen_data= ALL&cont= ALL&gen_country= ALL&gen_pheno= ALL&gen_habitat= ALL&gen_disease= ALL&gen_relevanc e=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" <merlyn
stonehenge. com>
wrote:
> >>>>> "Dinos" == Dinos Liolios <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= ¶m2=somethin g 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
stonehenge. com>
> <URL:http://www.stonehen ge.com/merlyn/>
> Perl/Unix/security consulting, Technical writing,
> Comedy, etc. etc.
> See PerlTraining. Stonehenge. com for onsite and
> open-enrollment Perl training!
>
www.i-dinos. com
<!--
#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}