MiniVend Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: Trouble with fetching cgi-string and double Qoute!



Hi Larry,

thank a lot for your fast reaction.

Your hint canīt solve my trouble. I have try it before and i am not able
to solve it, because i use the cgi-fetching-string-query by miniving.

This is an example

[perl arg="cgi scratch"]
for ($i = 1; $i < 10; $i++)
    {
     if ($Safe{'cgi'}->{"no$i"})
        {
         $Safe{'scratch'}->{"no$i"}  = $Safe{'cgi'}->{"no$i"};
         $Safe{'scratch'}->{"title$i"} = $Safe{'cgi'}->{"otitle$i"};
         }
     }
"";
[/perl]

I have look into the http.pm and server.pm files. It seems me, if there
are a variable, minivend look for value inside the qoute (") and if the
value has i.e. ""Hello again?" - The best MV book of the world!", it
will be still empty and i get empty value. There are no another code to
get the cgi query by myself. The form tag from the external database has
a link to the minivend page (i.e. intobasket.html) and the first code is
the above code. 
I donīt know, how to get the cgi string or how to 
I have try this...
[perl arg="cgi scratch"]
for ($i = 1; $i < 10; $i++)
    {
     if ($Safe{'cgi'}->{"no$i"})
        {
         $Safe{'scratch'}->{"no$i"}  = $Safe{'cgi'}->{"no$i"};
	 $_ =  = $Safe{'cgi'}->{"otitle$i"};
	 s/\"\"/\"/;
         $Safe{'scratch'}->{"title$i"} = $_;
         }
     }
"";
[/perl]

...no succes! 

This above code is the first place to get full control in minivend by
myself and i have no clue to handle the wrong value with double qoute ""
.

Any suggestions?

Thanks!

Joachim
Larry Leszczynski wrote:
> 
> ******    message to minivend-users from Larry Leszczynski <larryl@furph.com>     ******
> 
> Hi Jojo!
> 
> > <INPUT TYPE="HIDDEN" NAME="title3"
> >  VALUE=""Dem Reich Gottes Bahn brechen" - Gustav Werner (1809-1887)">
> >
> > In my minivend basket, the title is empty. Are there a way to solve
> > this problems?
> 
> You will need to fix your script to look for quote marks (") and replace
> them with %22 before you create the HTML lines, so the line would look
> like:
> 
>   <INPUT TYPE="HIDDEN" NAME="title3"
>    VALUE="%22Dem Reich Gottes Bahn brechen%22 - Gustav Werner (1809-1887)">
> 
> :-)
> 
> Larry Leszczynski
> larryl@furph.com
> --
>   furph, Inc.   WWW/Unix/Windows Solutions      734-513-7763 (voice)
> info@furph.com     http://www.furph.com         734-513-7759 (FAX)
> 
> -
> To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
> email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
> Archive of past messages: http://www.minivend.com/minivend/minivend-list

-- 
-------------Hans-Joachim Leidinger---------------------




Search for: Match: Format: Sort by: