corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » HTML form - sending the submitted data to a Text file?


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author HTML form - sending the submitted data to a Text file?
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
24th Sep 07 at 12:18   View Garage View User's Profile U2U Member Reply With Quote

Hey all

Imdesigning an Intranet, and want to place an ICT helpdesk on there for no urgent requests.

I want to use a form to allow people to submit their requests, but I want to know where the data will go when you hit the "submit" button.

Im fairly good with HTML, so say if I wanted to have a form that when submitted, creates a new text file with the submitted detail, can you dot hat?

THanks
AndyKent
Member

Registered: 3rd Sep 05
User status: Offline
24th Sep 07 at 12:22   View User's Profile U2U Member Reply With Quote

You need PHP/ASP or similar to grab the data and put it into a help text file or database.

Can't be done without some form of server side scripting
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
24th Sep 07 at 12:27   View Garage View User's Profile U2U Member Reply With Quote

Pish.

Any ideas on howto do this then?
Leighton
Member

Avatar

Registered: 21st Feb 01
Location: Liverpool
User status: Offline
24th Sep 07 at 12:28   View Garage View User's Profile U2U Member Reply With Quote

just submit the form to a email address
then its in txt and ready to reply to
job done
drax
Member

Registered: 5th Feb 05
Location: Sittingbourne, Kent
User status: Offline
24th Sep 07 at 12:43   View User's Profile U2U Member Reply With Quote

Yeah I was going to suggest, easier to submit to an email address
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
24th Sep 07 at 13:01   View Garage View User's Profile U2U Member Reply With Quote

How do I do that, it wants to send it fro your email account, but I want it just to submit via the web form!
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
24th Sep 07 at 13:06   View Garage View User's Profile U2U Member Reply With Quote

yes use a php page as that the form of the html page actions on.

then grab the info into a variable ie if you submitted text in a textbox called 'info' in the php put

$info = htmlentities($_REQUEST['info']);

as for making a text file its possible i dont know the commands off the top of my head but a quick search would do it
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
24th Sep 07 at 13:07   View Garage View User's Profile U2U Member Reply With Quote

Uhh ooo - PHP, is it easy?

Thanks Steve.
Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
24th Sep 07 at 13:11   View Garage View User's Profile U2U Member Reply With Quote

yes, if you play about with it a bit youl understand it
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
24th Sep 07 at 21:24   View User's Profile U2U Member Reply With Quote

http://www.liberum.org/ ftw

that is all
Ash_EP3
Member

Registered: 15th May 07
Location: Melksham, Wiltshire
User status: Offline
24th Sep 07 at 21:31   View User's Profile U2U Member Reply With Quote

PHP and ASP isn't that bad @ all mate... its useful when organising a site I s'pose & plus yeh you will need CSS (Cascading Style Sheet) of some sort to help as well
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
24th Sep 07 at 21:44   View Garage View User's Profile U2U Member Reply With Quote

Mike, I love you

xxx
Ian
Site Administrator

Avatar

Registered: 28th Aug 99
Location: Liverpool
User status: Offline
24th Sep 07 at 21:46   View Garage View User's Profile U2U Member Reply With Quote

Its easy but I would personally write stuff to a MySQL database rather than a text file.

Not all that much more difficult, easier to read it, report on the data etc. and a bit more robust.

You got PHP/MySQL hosting?
Neo
Member

Registered: 20th Feb 07
Location: Essex
User status: Offline
24th Sep 07 at 21:49   View User's Profile U2U Member Reply With Quote

quote:
Originally posted by pow
Mike, I love you

xxx




aww thanks










Steve
Premium Member

Avatar

Registered: 30th Mar 02
Location: Worcestershire Drives: Defender
User status: Offline
24th Sep 07 at 23:36   View Garage View User's Profile U2U Member Reply With Quote

what has css got to do with passing post variables to other pages
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
25th Sep 07 at 07:41   View Garage View User's Profile U2U Member Reply With Quote

quote:
Originally posted by Steve
what has css got to do with passing post variables to other pages


was thinking this tbh.
ed
Member

Registered: 10th Sep 03
User status: Offline
25th Sep 07 at 11:16   View User's Profile U2U Member Reply With Quote

If you want to do it in PHP, and maybe use MySQL there is enough information on the internet for you to figure it out. It's all Open Source so just give it a search in Google. I tought myself how to do it

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
Access genius people needed (linked tables) {sorted} Mikorsa16v Geek Day 3 830
12th Jun 03 at 22:23
by M4tt
 
Anyone good @ Programming ?? chris_lee100 Geek Day 3 1069
9th Jan 04 at 22:10
by Laney
 
PHP Experts Chump Geek Day 27 919
10th Feb 04 at 22:34
by vibrio
 
a file with *.DAT on the end........ liamC Geek Day 6 1179
25th Oct 05 at 13:20
by Cybermonkey
 
Outlook 2003 on a Network Andrew Geek Day 15 1409
24th Mar 06 at 10:39
by Andrew
 

Corsa Sport » Message Board » Off Day » Geek Day » HTML form - sending the submitted data to a Text file? 29 database queries in 0.0144019 seconds