| 9:03 pm on Jun 5, 2003 (gmt 0)|
does the laptop actually have a php interpreter? For that matter, to activate the form from a web browser, you'd need to be running a web server on the laptop. I've used PHP commend-line scripts independant of a browser, but if you want them to be called from a browser, you need a web server.
Once you have that, you can just change the form to have 'action="http://localhost/form-processor.php"'. Exactly where on the hard drive that is will depend on where the web root for your web server is.
Doing something like this for a stand-alone laptop seems excessive. I certainly wouldn't want to run a web server on my laptop. Are you sure they wouldn't be just as well off with a quickie program in VB/Python/Perl to take the data and write it to a file for them? Possibly even just a spreadsheet with the column names labeled, and processing the data later by exporting to a CSV file or such?
| 10:50 pm on Jun 5, 2003 (gmt 0)|
"Doing something like this for a stand-alone laptop seems excessive."
Hey now, I do virtually all of my development on my laptop. It is nice to be able to show clients exactly hwat things look like and how they work in an offline environment (where "borrowing" the code/markup is never an issue).
I run apache and php on XP. Works great.
| 2:31 am on Jun 6, 2003 (gmt 0)|
Oh, if the laptop is a development machine, it makes *perfect* sense - I wouldn't have a development machine *without* Apache+PHP. But if I were developing an app with the intent to use it on a non-networked machine, I wouldn't bother with the overhead of running a web server and generating HTML for a browser instead of, say, linking against GTK+ (or Qt, or whatever Windows people use) to provide an interface.
| 11:43 am on Jun 6, 2003 (gmt 0)|
Well doing a spreadsheet was actually my first suggestion but they really want the look of a website and the interactivity of a website. This will not be merely a "sign yourself up for a newsletter" form, it is more like a website with some exclusive content and a mailing list signup option.
"Are you sure they wouldn't be just as well off with a quickie program in VB/Python/Perl to take the data and write it to a file for them? "
- Can any of that be run via HTML in a browser?
I was thinking there may be an extremely simple way of getting around this...maybe something with the form action only? Could I do a method="get" then somehow use hidden values to write a file with the input information? I didn't know what I was getting into here...
Oh yeah and the laptop they are using has win98 and it doesn't look like it has anything too fancy on it, but I have been given limited permission to install neccasary things.
Thanks for the responses! I'll keep working on it...does anyone know where else I could look for something like this?
| 4:23 pm on Jun 6, 2003 (gmt 0)|
If you need help setting up the web server then I'd suggest going to HotScripts and looking up Installation Kits. I've personally used the firepages one on a win98 machine with no problems. It even sets up mySQL but using that seems a bit much for what you're storing. If you want to write to a file then look at the "fopen" (in append mode) and "fwrite" functions on php.net.
| 4:46 pm on Jun 6, 2003 (gmt 0)|
Awesome! I'll check it out! Thank you for the input.
I'll let you all know how it turns out...