Hello all,
I am out of my league, but in need of some help. I will try to be as brief as possible. I work for a law enforcement agency that has finally realized the benefit of data and statistics. Don't laugh, so are in the dark ages.
I have written a very basic PHP website utilizing MySql to keep track of officers patrolling habits and locations. I created it because I was tasked with "doing it by hand" sifting through 125 logsheets daily and pulling out the data and putting it into excel. So I created this site for the officer to input the data I was looking for when they completed the patrols I was looking for. I wrote a few report generators to pull the data back out. All is good!
Problem is they like it so much, they want more. They want all the data from all calls, but they want us to continue to use the "form" we have always used. Someone other than me created a very nice spreadsheet, that keeps up with every stat we collect.
What I want to do is have a BUTTON on the bottom of the sheet that launches a script or something that will automatically create and send a CSV stream of the data or send the data DIRECTLY in some format that PHP can handle (csv,xml, or other) VIA some transport (HTTP POST or similar to a waiting PHP script on our dbserver. Does what I am asking make sense? Is it possible? Ideas?
Don't get me wrong, if it was me, I would save the data to a CSV or XML file and then send it to the website, but I have to make this COP PROOF. Some of our law enforcement officers are not good at all with anything beyond typing in the form. Hence the need to send it directly with a push of a button. The secondary reason is the upper brass wants this sheet printed out as an archive backup and they want it to look like the form of old, so no creating a totally PHP driven website like I am currently doing.
Any help or suggestions, code snippets are welcome.
PS.. I cant send the data via GET as it will be longer than IE's limit of 2038 characters. We are standardized on IE for our in car laptops. Flame away
Richard
aka Nacman
Bookmarks