List Info

Thread: Re : Skip get arguments on the URL




Re : Skip get arguments on the URL
country flaguser name
United Kingdom
2007-08-17 06:13:01

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">sylvainpascalyahoo.fr

----- Message d'origine ----
De : Dinos Liolios < dinos007%40yahoo.com">dinos007yahoo.com>
À : Randal L. Schwartz < merlyn%40stonehenge.com">merlynstonehenge.com>
Cc : perl-beginner%40yahoogroups.com">perl-beginneryahoogroups.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&amp; 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&amp;statusco l=status&amp; goldstamp= ALL&gen_type= ALL&org_name1= genus&gensp= &org_domain= ARCHAEAL&amp; 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&amp;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&amp; 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; <merlynstonehenge. com>

wrote:

> >>&gt;>> "Dinos" == Dinos Liolios <dinos007yahoo. com>

> writes:

>

> Dinos> Once again always to the rescue. I am afraid

> I did

&gt; Dinos> not make myself clear on the previous email.

> My cgi

&gt; Dinos> script sets default values as '' and then the

&gt; database

> Dinos> query skips those parameters. My problem is

&gt; that I

>; Dinos> want to invoke my cgi script from the URL

&gt; without any

&gt; Dinos> of the parameters except the one I am

&gt; searching with.

> Dinos> Is this possible? So let's say that the form

> has two

&gt; Dinos> cgi params, param1 and param2. So the GET

&gt; URL would

> Dinos> be

> Dinos> search.cgi?param1= &param2=somethin g if I

>; wanted to

&gt; Dinos> search only by param2. If I type

> Dinos> search.cgi?param2= something the cgi script

> does not

&gt; Dinos> work. But that would be very convenient

> cause my

&gt; 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

&gt; 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

> <merlynstonehenge. com>

> <URL:http://www.stonehen ge.com/merlyn/>

> Perl/Unix/security consulting, Technical writing,

> Comedy, etc. etc.

> See PerlTraining. Stonehenge. com for onsite and

&gt; open-enrollment Perl training!

>

www.i-dinos. com

&lt;!--

#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;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
-->

__________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail

[Non-text portions of this message have been removed]

__._,_.___
.

__,_._,___
[1]

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