Re: validating # sign in php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2008/5/29 Sudhakar <sudhakararaog@xxxxxxxxx>:
> my question is about validation using php. i am validating a username which
> a user would enter and clicks on a image to find
>
> if that username is available. example if a user enters abc#123 php file is
> reading this value as abc ONLY which i do not
>
> want instead the php file should read as abc#123. following is the sequence
> of pages. please advice the solution.

You've asked this question at least three times now that I've seen,
and you've already had the answer.

The problem is not in PHP, it's in your javascript:

> var useri = document.registrationform.username
> var valueofuseri = document.registrationform.username.value
> [...]
> window.open("checkusernamei.php?theusernameis="+valueofuseri,
> "titleforavailabilityi", "width=680,  height=275, status=1,

You must urlencode valueofuseri.

-robin

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux