You are here: Re: allowing spaces in $_POST value? « All PHP « IT news, forums, messages
Re: allowing spaces in $_POST value?

Posted by chris on 11/17/05 19:17

how about
validate the username put in and if it has a space replace it with an
underscore then to convert it back to a displat name replace any underscore
with a space.

just a thought

--
Όα
<guitarromantic@gmail.com> wrote in message
news:1132169777.230382.237520@g47g2000cwa.googlegroups.com...
> Hey all,
>
> I'm using the popular Login script from
> http://evolt.org/PHP-Login-System-with-Admin-Features
>
> My problem is that I'm using my $username values displayed underneath
> posted articles. In the case of staff names, some are obviously 2 words
> (Neil F), etc. It seems I can't let these users login using the above
> script.
>
> I did try modifying it to no avail, experimenting with the
> login/validation functions, but I can't seem to make it work. I
> commented out the lines stripping slashes from the username, or tried
> htmlspecialchars and addslashes to it, to no avail.
>
> How can I allow spaces in the usernames? Or am I going to have to
> create a seperate column for usernames and displayed names (and modify
> all my pages that refer to $username..)?
>

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация