Re: [PHP] URLencode issues - halp! - code included

2003-01-24 Thread Marek Kilimajer
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

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread Chris Shiflett
--- 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

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread SpyProductions Support Team
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

Re: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread Leif K-Brooks
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

RE: [PHP] URLencode issues - halp! - code included

2003-01-23 Thread SpyProductions Support Team
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