Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
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.


  Search this Thread
Old 08-12-2004, 07:00 PM   #1
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, 07:57 PM   #2
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="">

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"

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 07:59 PM.
Old 08-13-2004, 06:09 AM   #3
LQ Newbie
Registered: Aug 2004
Location: Sweden
Posts: 10

Rep: Reputation: 0
<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">
<INPUT TYPE="submit" VALUE="Send it to us">

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

Feedback posted from

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="">

Old 08-13-2004, 06:16 AM   #4
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, 08:28 AM   #5
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,


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 02:30 PM
capture html form data blizunt7 Programming 12 06-19-2005 09:31 PM
Contact form on HTML Gerardoj Linux - General 1 03-26-2004 03:08 AM
an html form question matt_w_lambert Programming 3 10-31-2003 12:41 AM
problem with html form meluser Linux - Software 4 03-15-2003 01:28 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:16 AM.

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