Mailing List Archive



Back to the month index Back to the list index

Warren Killian (warrenk@in.net)
Sat, 03 Apr 1999 04:26:00 GMT


From: warrenk@in.net (Warren Killian)
Subject: urlEncode Problem
Date: Sat, 03 Apr 1999 04:26:00 GMT
Message-ID: <370594cb.3837301@su1.in.net>

Hello List,

I'm having a problem using the urlEncode() function. My database and
w3-msql script works fine, it's just the urlEncode() function that's
giving me problems.

I have an HTML form where text can be entered into text fields. The
action of that HTML form calls another web page that has a w3-msql
script in it. The w3-msql script takes the values that were entered
into the form, urlEncodes() them, then inserts them into the database.

There is a third page that queries the text from the database and
displays it in the HTML page, but it looks all strange. There are "+"
signs between each word and all apostrophe's appear as "%27". Is this
normal or have I used the urlEncode() function incorrectly?

Thanks for the help!
Warren Killian
warrenk@in.net
Warren Killian
warrenk@in.net
------------------------------------------------------
Our OS who art in CPU, UNIX be thy name,
Thy programs run, thy syscalls done,
In Kernel as it is in user!
From jcastagnetto@hotmail.com Fri Apr 2 23:40:50 1999
Received: from hotmail.com (wya-lfd114.hotmail.com [207.82.252.178])
        by services.bunyip.com (8.8.5/8.8.5) with SMTP id XAA12021
        for <msql-list@services.bunyip.com>; Fri, 2 Apr 1999 23:40:49 -0500 (EST)
Received: (qmail 28165 invoked by uid 0); 3 Apr 1999 04:40:18 -0000
Message-ID: <19990403044018.28164.qmail@hotmail.com>
Received: from 137.131.240.50 by www.hotmail.com with HTTP;
        Fri, 02 Apr 1999 20:40:17 PST
X-Originating-IP: [137.131.240.50]
From: "J. M. Castagnetto" <jcastagnetto@hotmail.com>
To: warrenk@in.net, msql-list@services.bunyip.com
Subject: Re: urlEncode Problem
Date: Fri, 02 Apr 1999 20:40:17 PST
Mime-Version: 1.0
Content-type: text/plain

If you urlencode() a text, to display it, you first need to urldecode()
it.

You will do something like:

echo urldecode($html_out);

HTH

>From: warrenk@in.net (Warren Killian)
>Reply-To: warrenk@in.net
>To: Multiple recipients of list <msql-list@services.bunyip.com>
>Subject: urlEncode Problem
>Date: Fri, 2 Apr 1999 23:29:41 -0500 (EST)
>
>Hello List,
>
>I'm having a problem using the urlEncode() function. My database and
>w3-msql script works fine, it's just the urlEncode() function that's
>giving me problems.
>
>I have an HTML form where text can be entered into text fields. The
>action of that HTML form calls another web page that has a w3-msql
>script in it. The w3-msql script takes the values that were entered
>into the form, urlEncodes() them, then inserts them into the database.
>
>There is a third page that queries the text from the database and
>displays it in the HTML page, but it looks all strange. There are "+"
>signs between each word and all apostrophe's appear as "%27". Is this
>normal or have I used the urlEncode() function incorrectly?
>
>Thanks for the help!
>Warren Killian
>warrenk@in.net
>Warren Killian
>warrenk@in.net
>------------------------------------------------------
>Our OS who art in CPU, UNIX be thy name,
>Thy programs run, thy syscalls done,
>In Kernel as it is in user!

Get Your Private, Free Email at http://www.hotmail.com
From jcastagnetto@hotmail.com Fri Apr 2 23:40:54 1999
Received: from hotmail.com (wya-lfd113.hotmail.com [207.82.252.177])
        by services.bunyip.com (8.8.5/8.8.5) with SMTP id XAA12025
        for <msql-list@services.bunyip.com>; Fri, 2 Apr 1999 23:40:53 -0500 (EST)
Received: (qmail 57107 invoked by uid 0); 3 Apr 1999 04:40:22 -0000
Message-ID: <19990403044021.57099.qmail@hotmail.com>
Received: from 137.131.240.50 by www.hotmail.com with HTTP;
        Fri, 02 Apr 1999 20:40:21 PST
X-Originating-IP: [137.131.240.50]
From: "J. M. Castagnetto" <jcastagnetto@hotmail.com>
To: warrenk@in.net, msql-list@services.bunyip.com
Subject: Re: urlEncode Problem
Date: Fri, 02 Apr 1999 20:40:21 PST
Mime-Version: 1.0
Content-type: text/plain

If you urlencode() a text, to display it, you first need to urldecode()
it.

You will do something like:

echo urldecode($html_out);

HTH

>From: warrenk@in.net (Warren Killian)
>Reply-To: warrenk@in.net
>To: Multiple recipients of list <msql-list@services.bunyip.com>
>Subject: urlEncode Problem
>Date: Fri, 2 Apr 1999 23:29:41 -0500 (EST)
>
>Hello List,
>
>I'm having a problem using the urlEncode() function. My database and
>w3-msql script works fine, it's just the urlEncode() function that's
>giving me problems.
>
>I have an HTML form where text can be entered into text fields. The
>action of that HTML form calls another web page that has a w3-msql
>script in it. The w3-msql script takes the values that were entered
>into the form, urlEncodes() them, then inserts them into the database.
>
>There is a third page that queries the text from the database and
>displays it in the HTML page, but it looks all strange. There are "+"
>signs between each word and all apostrophe's appear as "%27". Is this
>normal or have I used the urlEncode() function incorrectly?
>
>Thanks for the help!
>Warren Killian
>warrenk@in.net
>Warren Killian
>warrenk@in.net
>------------------------------------------------------
>Our OS who art in CPU, UNIX be thy name,
>Thy programs run, thy syscalls done,
>In Kernel as it is in user!

=====
Jesus M. Castagnetto - jcastagnetto@hotmail.com
Pilot stuff & etc.:
  http://www.geocities.com/ResearchTriangle/Lab/1059/
LAB: http://www.scripps.edu/research/metallo
Metalloprotein DB: http://metallo.scripps.edu/Get Your Private, Free Email at http://www.hotmail.com
From jcastagnetto@hotmail.com Sat Apr 3 00:00:04 1999
Received: from hotmail.com (wya-lfd119.hotmail.com [207.82.252.183])
        by services.bunyip.com (8.8.5/8.8.5) with SMTP id AAA12342
        for <msql-list@services.bunyip.com>; Sat, 3 Apr 1999 00:00:03 -0500 (EST)
Received: (qmail 10942 invoked by uid 0); 3 Apr 1999 04:59:32 -0000
Message-ID: <19990403045932.10941.qmail@hotmail.com>
Received: from 137.131.240.50 by www.hotmail.com with HTTP;
        Fri, 02 Apr 1999 20:59:31 PST
X-Originating-IP: [137.131.240.50]
From: "J. M. Castagnetto" <jcastagnetto@hotmail.com>
To: msql-list@services.bunyip.com
Subject: Re: Lite / Form Question
Date: Fri, 02 Apr 1999 20:59:31 PST
Mime-Version: 1.0
Content-type: text/plain

Commenting on Mitch Shields message about creation of variables, and
variable names references (see below).

I think that support of this mechanism would be good. This exists
already in PHP, and it is called variable variables, so if you have
variables like:

[WARNING: PHP only code follows]

$foo = "Nice day";
$bar = 1.23;
$biz = array (1, "foo", "boom");

then:

$v = "foo";
echo $$v; // is equivalent to: echo $foo;

$v = "bar";
echo gettype($$v); // will print "double"

$v = "biz";
echo ${$v}[2]; // will print "boom"
echo ${$v[1]}; // will be equivalent to: echo $foo;
// notice the braces in the above 2 lines;

This works even with the function names, so you can do:

        $gfun = "func1";

and then:

        $gfun(par1, par2, par3);

will be equivalent to:

        func1(par1, par2, par3);

So you can have something like overloading of methods in objects.

[END of PHP only code]

Functionality like this in Lite will make it more powerful.

-----
Mitch Shields wrote:

Actually, createVariable is useful if you ever need to dynamically
"mass-create" variables through a loop (though I am not
sure why you
  wouldn't just use an array at that point). What I am looking for
would be a
  function that would allow me to specify a string as an argument and
return
  the value of an already existing variable that matches that string.
  Something more like:
   
  $i = 0;
  while ($i < 11)
  {
  $foo = "$client_" + (char) $i;
  $value[$i] = extractVariable( $foo)
  $i = $i + 1;
  }
   
  extractVariable() would be a Lite function that returns the value of
the
  string representation of the variable.
  My form would have a number of fields named client_0 through client_10
and
  that code would let me assign the values of those fields to the $value
  array. I would prefer that to the overhead of some symbol table that
  contained every field from the submitted form.
-----

=====
Jesus M. Castagnetto - jcastagnetto@hotmail.com
Pilot stuff & etc.:
  http://www.geocities.com/ResearchTriangle/Lab/1059/
LAB: http://www.scripps.edu/research/metallo
Metalloprotein DB: http://metallo.scripps.edu/

Get Your Private, Free Email at http://www.hotmail.com
From martyn@enteronhome.com Sat Apr 3 18:21:35 1999
Received: from mocha.bunyip.com (mocha.Bunyip.Com [209.41.144.2])
        by services.bunyip.com (8.8.5/8.8.5) with ESMTP id SAA22773
        for <msql-list@services.bunyip.com>; Sat, 3 Apr 1999 18:21:34 -0500 (EST)
Received: from charon.enteronhome.com (mail.enteronhome.com [207.123.82.5])
        by mocha.bunyip.com (8.8.5/8.8.5) with ESMTP id SAA01082
        for <msql-list@bunyip.com>; Sat, 3 Apr 1999 18:21:29 -0500 (EST)
Received: from sparc5.enteronet.com by charon.enteronhome.com (8.8.8+Sun/SMI-SVR4)
        id RAA10988; Sat, 3 Apr 1999 17:10:07 -0600 (CST)
Received: from enteron.net by sparc5.enteronet.com (8.8.8+Sun/SMI-SVR4)
        id RAA08649; Sat, 3 Apr 1999 17:10:03 -0600 (CST)
Message-ID: <3706A337.5D73FDE3@enteron.net>
Date: Sat, 03 Apr 1999 17:26:19 -0600
From: Martyn Wilson <martyn@enteronhome.com>
Reply-To: martyn@enteronhome.com
Organization: The Enteron Group
X-Mailer: Mozilla 4.51 (Macintosh; U; PPC)
X-Accept-Language: en
MIME-Version: 1.0
To: Franz Reichardt <franz.reichardt@7fun.de>
CC: msql-list@bunyip.com, msql2@yahoo.com, martyn@enteronhome.com
Subject: Re: w3-auth returns blank screen
References: <37054101.CF752A5A@7fun.de>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Franz,

I don't recall the error I got that you refer to. Could you expand the
description a bit. I must have worked it out because we have w3-auth
working and running an extranet app.

Although the docs are weak once you've gone through it a couple of
times, it pretty much makes sense.

Franz Reichardt wrote:
>
> Hello,
> concerning the following problem:
> >>The problem :-( is that, in any of the three Management
> >>options, after I made a selection in the list box, checked any one of
> >>the radio button and then clicked on Execute, a blank screen would be
> >>returned (Well, not entirely blank-- the banner.gif, a.k.a deer head +
>
> >>Hughes Technologies w3-msql, was still shown in the new page).
>
> I got the same error (like Martyn Wilson) with mSQL2.0.7 under Suse 6
>
> Any help - desperate
>
> Regards Franz

-- 
Martyn Wilson
Web Development
The Enteron Group
(312) 922 8816
From s.fenger@freiepresse.de  Sun Apr  4 06:58:39 1999
Received: from linux.net.de (root@ppp-c16.freiepresse.de [194.25.233.16])
	by services.bunyip.com (8.8.5/8.8.5) with ESMTP id GAA29049
	for <msql-list@services.bunyip.com>; Sun, 4 Apr 1999 06:58:38 -0400 (EDT)
Received: from amd200.net.de (amd200.net.de [192.168.0.30])
	by linux.net.de (8.8.8/8.8.8) with SMTP id MAA09752
	for <msql-list@services.bunyip.com>; Sun, 4 Apr 1999 12:56:00 +0200
Message-ID: <004a01be7e8a$5f037000$1e00a8c0@amd200.net.de>
From: "Steffen Fenger" <s.fenger@freiepresse.de>
To: <msql-list@services.bunyip.com>
Subject: unsubscribe 
Date: Sun, 4 Apr 1999 13:00:37 +0200
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0047_01BE7E9B.226AAE40"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

This is a multi-part message in MIME format.

------=_NextPart_000_0047_01BE7E9B.226AAE40 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

------=_NextPart_000_0047_01BE7E9B.226AAE40 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

 
------=_NextPart_000_0047_01BE7E9B.226AAE40--