besides urlencode you should also use htmlspecialchars
SpyProductions Support Team wrote:
Here is some code:
From a form, I get username as $name and it goes to the processing file for
the form, where a sale happens and it sends the code to a different server
like this:
$data = urlencode($n
--- SpyProductions Support Team
<[EMAIL PROTECTED]> wrote:
> So what is the decode part for then? Earlier versions of
> PHP?
No, it is for decoding URL-encoded strings, just as you
would expect.
The reason you do not need to decode URL variables is
because they are not URL-encoded by the time yo
So what is the decode part for then? Earlier versions of PHP?
:)
Thanks,
-Mike
-Original Message-
From: Leif K-Brooks [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 4:43 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] URLencode issues - halp
Take the
$name = urldecode($name);
bit out. The decoding is all handled by PHP before your script runs.
Also, you should look into using $_GET['name'] instead of $name.
SpyProductions Support Team wrote:
Here is some code:
From a form, I get username as $name and it goes to the processing f
Here is some code:
>From a form, I get username as $name and it goes to the processing file for
the form, where a sale happens and it sends the code to a different server
like this:
$data = urlencode($name);
print "";
That server then processes the person and puts them into the MySQL - but i
5 matches
Mail list logo