Ask a Neurologist. Get Answers to Your Neurology Questions.
Hello and welcome. I'm Dr Chip
Since the pain not only involves your foot but goes up your leg, this is likely a disk problem in your lower back.
For now you need rest and leg elevation and ibuprofen but you need to see your doctor for an exam and an MRI of your lumbar spine. I usually treat my patients with ruptured disks with a referral to a physiatrist-- a physical medicine and rehabilitation MD specialist--for a customized physical therapy program that usually relieves the symptoms.
Please let me know if you need any more information