December 3rd, 2001, 09:02 PM
December 3rd, 2001, 09:04 PM
I don't understand your problem... could you explain in more detail?
December 3rd, 2001, 10:31 PM
if your using a Mysql database it should not appear on the page. But if u made it that way just save all the database stuff in a a mysql extension file, and check if the user name is taken or not using php. I don't see another way out of it.
You know your a web programmer when you see a '$' and think of PHP rather than money.
December 4th, 2001, 07:06 AM
The problem: I wanted to check the username to see if it is already used, at the time of entry, not after submit. So I was using <ON CHANGE> to run a check of the entered username against an array of current usernames.
This works fine in practice, but If you do a view-source, you get to see all the usernames. This is a potential security hole. If I can't hide this array, I have to return to checking the usernames after submit.
December 4th, 2001, 07:26 AM
Run the checking in a hidden layer/iframe then the user wont be able to see the code. You can essentially run the check as if it was a form submission, reloading a CGI script again and again when the change happens.