Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2002
Posts: 599
UGN's Resident Homo
OP Offline
UGN's Resident Homo
Joined: Mar 2002
Posts: 599
--------------------
HOW TO MAKE A FORM
--------------------

I used to envy everyone with forms on their pages because I wanted them on my site. However with no access to CGI I thought it was impossible to create a form of any kind. I was wrong. In fact, it is quite simple to create a working form, and it will take less time than expected.

--------------------
Materials Needed
--------------------

1. Text Editor (such as notepad)
2. WYSIWYG Editor (if you feel like editing the hmtl code through that)
3. An Email Address
4. This Tutorial

---------------------
How Its Done
---------------------

The first part of making a form is to start with the correct command to let the browser know a form is starting.

<FORM METHOD="POST" ACTION="mailto:your address">

Notice that it tells the browser a form is starting, the form will post the info, and the info will be posted/emailed to the designated email address.

---------------------

The next step is to decide how you would like the user of this form to enter the information. There are several options.

Option 1: A Text Box

A text box is a one character high box that allows the user to write in it. The code is below. Note that the "text" command tells the browser it will be a text box, the "name" command tells the browser the name of the text box, and the "size" command tells the browser how long to make the box.

<INPUT TYPE="text" NAME="name" SIZE="45">

As with this type of input and all the others, you must replace the "name" with what the user will be placing in the text box. The user will not be able to see this name, but when the info is sent to you through your email you will need this designated to know what the users answer corresponds with. Please take note of this because I will not cover it again.

Option 2: The Text Area Box

This is simply a larger version of the text box which allows for mulitiple lines of text. The code is below. It is much the same as the text box with "rows" telling how tall it will be, and "cols" telling how many characters will be in each row.

<TEXTAREA NAME="comment" ROWS=7 COLS=49>
</TEXTAREA>

Notice that the text area box requires a </TEXTAREA> as the text box did not.

Option 3: The Radio Button

The radio button is used for a question with several answers. The code is below. Note that only one radio button can be marked per question.

<INPUT TYPE="radio" NAME="heading" VALUE="name">

Look at the code and see that when using multiple radio buttons for one question you would have all the radio buttons with the same "name" but diff "values".

Option 4: The Check Box

Exact same as the radio button except that you can check more than one answer for a question and it appears as a box opposed to a circle like the radio button. The code is below.

<INPUT TYPE="checkbox" NAME="somethin" VALUE="somethin">

Option 5: The Pull Down Menu

The pull down lets you click a down arrow to view several options. You have all seen these in action at various forms. The code is below. Note that the "name" is what will be emailed to you, the "size" tells how many options will be displayed at once (recommend one), the "option selected" is the one that will be shown, and the "option" are the other choices. Not as hard as it may appear.

<SELECT NAME="Favorite Band" SIZE="1">
<OPTION SELECTED>Def_Leppard
<OPTION>Creed
<OPTION>Eminem
<OPTION>Dre
<OPTION>Van_Halen
</SELECT>

--------------------

Next you must put a send button on your page to allow your user to send you the info in the form. This is vital (obviously). The code is below.

<INPUT TYPE="submit">

If you want a reset button on your page use the below code.

<INPUT TYPE="reset">

--------------------

And, to finish the form off don't forget to close it with the below code.

</FORM>

--------------------

Please let me know how helpful this is to you, because I will base any later posts on your feedback. If you want to know anything in particular about html post it on the board and I will write a tutorial for it.

-BackSlash


"It's better to burn out, than to fade away."
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
however this isn't nearly as good as a real CGI form because doing this: "mailto:your address" sends the email on the client's computer. This requires having a default mail client setup which accepts sending emails (like Outlook Express). I and many other people do not have it setup and therefor the form does not work. Also, I don't think any linux user would find that it works either.

However, when you don't have CGI access, there's no alternative to making at least a FEW people happy - except getting yourself a different host...


Domain Registration, Hosting, Management
http://www.dollardns.net
Joined: Mar 2002
Posts: 599
UGN's Resident Homo
OP Offline
UGN's Resident Homo
Joined: Mar 2002
Posts: 599
This is all true SilentRage. Also, another anyone planning to use this might want to be aware that when the data is sent to you it will not seperate each question and can be rather difficult to read. However, as you said, this is the best option if CGI is not available. Either this or end up with one of those free CGI providers that will throw ads all over your site, lol.

-BackSlash


"It's better to burn out, than to fade away."
Joined: Mar 2002
Posts: 1,273
DollarDNS Owner
Offline
DollarDNS Owner
Joined: Mar 2002
Posts: 1,273
Before I started hosting myself, I did have a free host with CGI, MySQL, PHP, SSI, and FTP access aaaaaaand no ads! It was a neat find. They shutdown since then though.

They're out there dude.


Domain Registration, Hosting, Management
http://www.dollardns.net

Link Copied to Clipboard
Member Spotlight
Phatal
Phatal
Houston, TX
Posts: 298
Joined: April 2004
Forum Statistics
Forums41
Topics33,840
Posts68,858
Average Daily Posts1
Members2,176
Most Online3,253
Jan 13th, 2020
Latest Postings
Where and how do you torrent?
by danni75 - 03/01/24 05:58 AM
Animation,
by JohanKaariainen - 08/15/19 01:18 AM
Blackbeard.....
by Gremelin - 10/03/18 07:02 PM
my old account still exists!
by Crime - 08/10/18 02:47 PM
Okay WTF?
by HenryMiring - 09/27/17 01:45 AM
The History Thread...
by Gremelin - 08/11/17 12:11 PM
My friend NEEDS your HELP!
by Lena01 - 07/21/17 12:06 AM
I'm having fun with this guy.
by gabithompson730 - 07/20/17 01:50 AM
I want to upgrade my phone
by gabithompson730 - 07/20/17 01:49 AM
Doom 3
by Cyrez - 09/11/14 08:58 PM
Amazon Gift Card Generator/KeyGen?te
by Gecko666 - 08/22/14 09:21 AM
AIM scene 99-03
by lavos - 09/02/13 08:06 AM
Planetside 2
by Crime - 03/04/13 07:10 AM
Beta Testers Wanted
by Crime - 03/04/13 06:55 AM
Hello Everyone
by Gremelin - 02/12/12 06:01 PM
Tracfone ESN Generator
by Zanvin Green - 01/18/12 01:31 PM
Python 3 issue
by Testing - 12/17/11 09:28 PM
tracfone airtime
by Drache86 - 07/30/11 03:37 AM
Backdoors and the Infinite
by ZeroCoolStar - 07/10/11 03:52 AM
HackThisZIne #12 Releaseed!
by Pipat2 - 04/28/11 09:20 PM
gang wars? l33t-wars?
by Gremelin - 04/28/11 05:56 AM
Consolidate Forums
by diggin2deep - 04/21/11 10:02 AM
LAN Hacking Noob
by Gremelin - 03/12/11 12:42 AM
Top Posters
UGN Security 41,392
Gremelin 7,203
§intå× 3,255
SilentRage 1,273
Ice 1,146
pergesu 1,136
Infinite 1,041
jonconley 955
Girlie 908
unreal 860
Top Likes Received
Ghost 2
Cyrez 1
Girlie 1
unreal 1
Crime 1
Powered by UBB.threads™ PHP Forum Software 7.7.5