LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 08-12-2004, 06:00 PM   #1
henrikanttonen
Member
 
Registered: Aug 2004
Location: Finland
Distribution: Puppy Linux with FluxBox
Posts: 40

Rep: Reputation: 15
html question: form


I might be asking the impossible. If I do, please say it to me so I won't look the answer anymore.

I'm building a very fine and exciting and informative site and I'd need an easy way for people to give feedback or information to me.

Now, I know how to make a form and a textbox and two buttons "submit" and "reset". I'd need several textboxes, but that's not important right now. Ok, that looks great. What I'm wondering is that how on earth do I actually get the stuff that people write to the the textbox to jump to my email. Is it even possible when I'm using free hosting and free email service?
 
Old 08-12-2004, 06:57 PM   #2
Travis86
Member
 
Registered: Dec 2002
Location: The land of GMT -6
Distribution: OS X, PS2 Linux, Ubuntu, IRIX 6.5
Posts: 399

Rep: Reputation: 31
You may try:
<form action="mailto:you@whereever.com">

I hear this works, but I've never tried it. If it does, it'll be exactly what you need. The output may come out a little funny such as:
BOX1="I like your site, but my dog prefers TravisDart.com."
SUBMIT=1

The "normal" way is to send the output to a server-side program (usually written in PHP, ASP, Perl, or Python). I doubt your free host has this feature, though.

Hope that helps.

Last edited by Travis86; 08-12-2004 at 06:59 PM.
 
Old 08-13-2004, 05:09 AM   #3
_Chow_
LQ Newbie
 
Registered: Aug 2004
Location: Sweden
Posts: 10

Rep: Reputation: 0
<FORM NAME="feedback" ACTION="mailto:you@address.com" METHOD="POST" ENCTYPE="TEXT/PLAIN">
<INPUT TYPE="text" NAME="FirstName" SIZE="35" MAXLENGTH="35" VALUE="">
<INPUT TYPE="text" NAME="LastName" SIZE="35" MAXLENGTH="35" VALUE="">
<INPUT TYPE="text" NAME="Tel" SIZE="12" MAXLENGTH="12" VALUE="">
How many beers have you had tonight ?
5 <INPUT TYPE="radio" NAME="QuantityBeer" VALUE="5">
10 <INPUT TYPE="radio" NAME="QuantityBeer" VALUE="10">
15 <INPUT TYPE="radio" NAME="QuantityBeer" VALUE="15">
<TEXTAREA NAME="Comments" ROWS="5" COLS="40"></TEXTAREA>
<INPUT TYPE="submit" VALUE="Send it to us">
</FORM>

resulting email will come with encryption type text and look like:

Feedback posted from www.yourwebsiteurl.com

FirstName=
LastName=
Tel=
QuantityBeer=
Comments=
submit=Send it to us

though the standard now in html tags is not CAPS but all small :
<input type="text" name="FirstName" size="35" maxlength="35" value="">


/Nick
 
Old 08-13-2004, 05:16 AM   #4
Proud
Senior Member
 
Registered: Dec 2002
Location: England
Distribution: Used to use Mandrake/Mandriva
Posts: 2,794

Rep: Reputation: 116Reputation: 116
Be prepared for your email address to be collected by spammers if you put it in a html page as plain text like that.
 
Old 08-13-2004, 07:28 AM   #5
henrikanttonen
Member
 
Registered: Aug 2004
Location: Finland
Distribution: Puppy Linux with FluxBox
Posts: 40

Original Poster
Rep: Reputation: 15
My gratitude expands beyond this dimention. My site would've never worked without this feature.

What comes to spammers, they're bound to find me anyway, so it doesn't matter.

Thank you once again,
henrik
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Html Form File Cottsay General 0 11-05-2005 01:30 PM
capture html form data blizunt7 Programming 12 06-19-2005 08:31 PM
Contact form on HTML Gerardoj Linux - General 1 03-26-2004 02:08 AM
an html form question matt_w_lambert Programming 3 10-30-2003 11:41 PM
problem with html form meluser Linux - Software 4 03-15-2003 12:28 PM


All times are GMT -5. The time now is 01:04 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration