Jump to content

Filtering a street address


xnowandtheworldx

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/227671-filtering-a-street-address/
Share on other sites

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. :)

 

 

Thanks businessman I'll be sure to check that out!

 

Thread will be marked as complete. :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.