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: 1916
Discussions: 200,919, Posts: 2,379,081, Members: 246,287
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? (2852)
Obama the Muslim (13)
Why is Khalid Sheikh Mohammed even .. (9)
Is the PSU I received dead? (10)
windows vista security holes (8)
Foreign voltage (10)
Print spooler problem (13)
HIS HD5770 graphic card question (15)
Install XP pro and a Vista laptop ?.. (9)
Dept. of HS: NSA 'Helped' Develop V.. (15)
A good PSU? (10)
New Computer wont recognize XP disc (7)
Ideal cheap graph card for PC-Gamin.. (15)
EVGA 9800 gtx help with finding a g.. (8)
Recent Discussions
[F@H SPAM 11/16/09] ! 1/2 months to r.. (34)
Wireless speakers for PC? (11)
Print spooler problem (13)
Help getting around port 80 for camer.. (2)
Display shows 3x5 inch in middle of s.. (3)
windows vista security holes (8)
monitor will not turn on at all, (1)
World's largest Monopoly Game using G.. (331)
Foreign voltage (10)
FiOS modem/router interfering with ne.. (7)
Browsers wont load websites (2)
Virus Doctor Popup? (1)
Dept. of HS: NSA 'Helped' Develop Vis.. (15)
Install XP pro and a Vista laptop ?? (9)
EVGA 9800 gtx help with finding a goo.. (8)
Modern Warfare For the PC (32)
Problem with speed step/turbo boost? (1)
Modern Warfare 2: Who Bought It? (61)
SIS 740 and Widescreen (8)
Baffling Problem with my CPU/MoBo's. .. (0)
HIS HD5770 graphic card question (15)
Best file format to play on Windows H.. (0)
PSP Go bought in Japan (0)
Asus P4G8X Mobo (3)
Need hard disk drivers (4)


All times are GMT -4. The time now is 09:01 PM.
TechIMO Copyright 2009 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