Loading ...
Sorry, an error occurred while loading the content.

Re : [PBML] Skip get arguments on the URL

Expand Messages
  • Sylvain Pascal
    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
    Message 1 of 1 , Aug 17, 2007
      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 PASCAL LACOMBE

      ----- Message d'origine ----
      De : Dinos Liolios <dinos007@...>
      À : Randal L. Schwartz <merlyn@...>
      Cc : 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


      --- "Randal L. Schwartz" <merlyn@stonehenge. com>


      > >>>>> "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 p{
      margin:0 0 1em 0;}
      #ygrp-vitnav a{
      padding:0 1px;}
      clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
      #ygrp-actbar .left{
      font-family:Verdana;font-size:77%;padding:15px 0;}
      font-family:verdana;font-size:77%;border-top:1px solid #666;
      padding:5px 0;
      #ygrp-mlmsg #logo{

      background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
      #ygrp-vital #vithd{
      #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{
      #ygrp-vital ul li .cat{
      #ygrp-vital a {

      #ygrp-vital a:hover{

      #ygrp-sponsor #hd{
      #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{
      #ygrp-sponsor #nc {
      background-color:#eee;margin-bottom:20px;padding:0 8px;}
      #ygrp-sponsor .ad{
      padding:8px 0;}
      #ygrp-sponsor .ad #hd1{
      #ygrp-sponsor .ad a{
      #ygrp-sponsor .ad a:hover{
      #ygrp-sponsor .ad p{
      o {font-size:0;}
      .MsoNormal {
      margin:0 0 0 0;}
      #ygrp-text tt{
      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]
    Your message has been successfully submitted and would be delivered to recipients shortly.