/    Sign up×
Community /Pin to ProfileBookmark

Form that goes to a log file

I want to make an html page with several forms on it that go straight into a log file. The page will be on an apache server for my home network. I just need to know how to get the entries into the forms to go to a log once the “submit” button is pressed. Oh, and i’m on Linux ?

Any help would be great

to post a comment
HTML

3 Comments(s)

Copy linkTweet thisAlerts:
@scottrickmanDec 18.2006 — You seem to be missing a step in your logic (or at least to get a manageable solution you seem to be). Surely you need to form to post to a server-side script that can process the form data into the log file? Using Apache on Linux I'd guess you should have access to php? So form.html has a post method and a action of process.php, process.php gets the form data and writes it out to file.log (and then potentially redirects the user to a thank you page?)
Copy linkTweet thisAlerts:
@synd7authorDec 19.2006 — ok, thanks.

I'm kinda clueless when it comes to networking, html, php, etc... :p
×

Success!

Help @synd7 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...