Get diagnosed first
There are a number of things that can cause pain in the foot.
This is a very nonspecific symptom. I recommend that someone with sharp pain in the feet should be seen by orthopedic foot and ankle surgeon for a definitive diagnosis so that appropriate treatment can be started. One in your area can be found at www.Aofas.Org.