Gossamer Forum
Home : Products : DBMan SQL : Discussion :

Dash - in the username.

Quote Reply
Dash - in the username.
Does anyone know how to allow a - dash (hyphen) in the username? I've changes a few places to allow it:
($in{'userid'} =~ /^[a-zA-Z0-9_\-.]+$/))
but the username stored in the database turns out to be anything after the dash. For example, test-4 becomes 4.

Quote Reply
Re: Dash - in the username. In reply to

Ensure that you have quoted your userid before you store it to database and display to borwser.



Software Developer.