Re: validating # sign in php

From: Date: Fri, 30 May 2008 07:59:40 +0000
Subject: Re: validating # sign in php
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-274875@lists.php.net to get a copy of this message
2008/5/29 Sudhakar <sudhakararaog@gmail.com>: > 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

« previous php.general (#274875) next »