Forum Moderators: coopster
I created the HTML and form and all the easy stuff and I thought that I could simply host my PHP on the hard drive (ie. target="C:\signedup.php") then change the code to save a file somewhere (like in a given notepad file). Everything was great until I actually tried to do it. With my very limited knowledge of this sort of thing I quickly found myself lost beyond belief; as usual when I find myself in those situations I come running here! Please help! I am getting desperate. I would love to learn something new!
Thanks in advance.
-Linus
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?
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.
WBF
"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?
-Linus