home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Forms to files

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2143
Discussions: 200,512, Posts: 2,374,432, Members: 245,837
Old March 17th, 2003, 11:53 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Sep 2002
Location: Shirley, New York
Posts: 257
Send a message via AIM to Paluccie
Forms to files

Ok I know there is a way to do this, I just lost my documentation on how to do it. I'm trying to have a form on my website that when a customer presses the submit form, it submits it to a file. I would like it to submit to a database but not sure if that's possible. The form is only a 1 page form. Any hlep would be appreciated
Paluccie is offline   Reply With Quote
Old March 18th, 2003, 12:11 AM     #2 (permalink)
Junior Member
 
Join Date: Mar 2003
Posts: 4
U got PHP on ur server? use fputs() or fwrite() to write to a file after parsing the form input and making it into readable form. heres and simple example:

$handle = fopen("results.txt", 'a');
fwrite($handle, $somecontent);
fclose($handle);

just append all the text from the form results to the somecontent variable and ur done.

more info:

http://www.php.net/manual/en/function.fwrite.php

caio
bmw5002 is offline   Reply With Quote
Old March 18th, 2003, 12:26 AM     #3 (permalink)
Member
 
Join Date: Sep 2002
Posts: 364
Yeah, what kind of server is it? That would be the best thing to know to start out a plan.

If its Windows, your provider probably offers MS Access support, and you could use that as the Database.

Linus probably has MySQL.
Creosote is offline   Reply With Quote
Old March 18th, 2003, 12:55 AM     #4 (permalink)
Member
 
Join Date: Sep 2002
Location: Shirley, New York
Posts: 257
Send a message via AIM to Paluccie
thanks for the help
Paluccie is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (1639)
windows 7 retail and rtm (5)
FT HOOD attack: 7 killed 12 injured (67)
HELP!!! What do you think of this s.. (20)
Review My Build (6)
Assosiations (21500)
Looking for a graphic card that wil.. (30)
My 1st pc build (40)
PC Modern Warfare 2: it's much wors.. (12)
Aero in Vista (7)
core i7 extreme 975, nvidia 9400gt (9)
How to Ship a PC (16)
Building my first computer (13)
[F@H SPAM 11/1/09]New month . . . n.. (33)
Recent Discussions
My Pc wont start after i interupted d.. (0)
HELP!!! What do you think of this sys.. (20)
windows 7 retail and rtm (5)
New processor technical problem (0)
boot from CD-ROM in chipset via P4M80.. (2)
Powe Director v8 (0)
Windows Experience Index is screwed u.. (3)
Review My Build (6)
FAT32 to NTFS file system in Win2kpro (4)
Internet very slow since updating AVG.. (8)
Motherboards and my curse... (25)
New Processor, Monitor will not turn .. (2)
2009 Build (4)
My 1st pc build (40)
Freezing During Music/Movies (1)
ext. sound card laptop to stereo syst.. (2)
Remote Desktop via SSH and error mess.. (2)
Help and Support disappeared from my .. (0)
[F@H SPAM 11/1/09]New month . . . new.. (33)
Basic applications needed for "r.. (1)
core i7 extreme 975, nvidia 9400gt (9)
hard drive problem (2)
Win7 TrustedInstaller Permissions (2)
Speed up Win 7 boot time a bit (1)
Hard Drive test program (2)


All times are GMT -4. The time now is 10:29 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28