Forme i slanje informacija

Evo jedanog takvog primera. Provera verodostojnosti podaka nije prisutna, pa o tome razmislite vi i ukljucite javascript.
Ova forma koristi POST metod.

Eto, jednostavno, mozete popuniti formular i pritisnuti submit button. Forma ce potom biti smestena u klijentov e-mail SEND folder. Mozete je pogledati i obrisati je. (Hm, nemojte je meni slati).

Znaci:

  1. method je post

  2. action je mailto:moj@mailSUBJECT='Poslato s moj eforme' > Which enters some text in the subject line of the e-mail.

  3. The enctype is "text/plain" This formats the text so you don't get one word after another.

  4. The form elements are named in a way I can understand them - that is, not B1, T3, etc! So the name box is called NAMER.

This is a very simple form that anyone can put on their website to get feedback.

 

Name:
Address
Telephone
e-mail
Additional
Send Further Information:

 

Copy of the code for the form above

<form method=" post " enctype=" text/plain " action=" mailto:me@my.com?subject='Sent from my form' ">

<table border=" 0 " cellpadding=" 5 " cellspacing=" 0 " width=" 573 ">

<tr>

<td width=" 190 ">

Name:

</td>

<td width=" 363 ">

<input type=" text " name=" Namer " size=" 20 " />

</td>

</tr>

<tr>

<td width=" 190 ">

Address

</td>

<td width=" 363 ">

<input type=" text " name=" Address " size=" 20 " />

</td>

</tr>

<tr>

<td width=" 190 ">

Telephone

</td>

<td width=" 363 ">

<input type=" text " name=" Telephone " size=" 20 " />

</td>

</tr>

<tr>

<td width=" 190 ">

Additional

</td>

<td width=" 363 ">

<select name=" Choicer " size=" 1 ">

<option value=" Fish ">

Fish

</option>

<option value=" Chips ">

Chips

</option>

<option value=" Vinegar ">

Vinegar

</option>

<option selected value=" ChooseHere ">

Choose Here

</option>

</select>

</td>

</tr>

<tr>

<td width=" 190 ">

Send Further Information:

</td>

<td width=" 363 ">

<input type=" checkbox " name=" Send further information " value=" ON " checked />

</td>

</tr>

</table>

<p>

<input type=" submit " value=" Submit " name=" B1 " />

<input type=" reset " value=" Reset " name=" B2 " />

</p>

<textarea rows=" 3 " name=" Comments: " cols=" 44 ">

Comments

</textarea>

</p>

</form>




Izlaz