mysql - how do I trim an email input address so only the data before the @ is inputted into the database? -
i using coldfusion 9 add data mysql database form.
i create username email address inputed form.
for example,
<cfset store_user_email = emailaddress> <cfset store_username = trim emailaddress before @>
i'm not sure how trim down email address?
any appreciated.
<cfset store_username = trim(listfirst(emailaddress,"@"))>
Comments
Post a Comment