xnowandtheworldx Posted February 14, 2011 Share Posted February 14, 2011 Hey guys, we have a website where people are able to post things, and we don't want to allow anyone to be able to post their street address, for obvious reasons. I'm really stuck on this one, I've looked for some regular expressions to no avail...one idea we did have was to check a text for an address then check to see if it was a valid address with the google maps API but then again...it goes back to having a regular expression for capturing the street address. I was wanting to know, is there any way I will be able to catch whether a user has posted an address? I was going to post this in the regex section but I'm not sure if I should use any regex's or if there might be another way. Put basically I need to be able to strip a street address from the text if a user posts one. I'm pretty sure it's probably not possible, but I figured I'd ask first. Thanks for any help anyone can provide! Quote Link to comment Share on other sites More sharing options...
phppaper Posted February 15, 2011 Share Posted February 15, 2011 Have you consider to use different text field for different part of address, instead of a long one for the whole address? like a text field for street so that you can work on it? Quote Link to comment Share on other sites More sharing options...
Ninjakreborn Posted February 15, 2011 Share Posted February 15, 2011 http://www.sitepoint.com/forums/showthread.php?t=476591 Quote Link to comment Share on other sites More sharing options...
xnowandtheworldx Posted February 15, 2011 Author Share Posted February 15, 2011 Have you consider to use different text field for different part of address, instead of a long one for the whole address? like a text field for street so that you can work on it? It's not a text field, people are just able to make posts which everyone is able to see. We just don't want anyone typing in their address in the text and giving it out to whoever. http://www.sitepoint.com/forums/showthread.php?t=476591 Thanks businessman I'll be sure to check that out! Thread will be marked as complete. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.