Hire a programmer. This will not be an expensive job, you can post on sites like http://www.odesk.com
(I have no affiliation with them) and people will bid on the job. I urge you to not try this yourself, it sounds like you don't have any idea how to accomplish this task. Make sure to get all your requirements clear if you decide to post a job.