Welcome to the iTechForums.
If this is your first visit, be sure to check out the
FAQ by clicking the link above.
You may have to
register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
|
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 3
Members:
Number of Users Online:
Welcome to our newest member, |
|
 |

05-15-2008, 10:46 AM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 1
|
|
HTML <form> help?
i have to make a html script thing at school but i got 1 question:
how can i make the form thing actually save in a document or even edit the marquee tag/display in a <textarea> tag? its really difficult trying to find out how to make form work properly any help will be great
(ill give best answer to the only person who answered aswell)
|

05-15-2008, 02:43 PM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 2
|
|
http://www.quackit.com/html/tutorial/html_forms.cfm
Check above link there is some examples, I hope it will help.
|

05-16-2008, 03:58 AM
|
|
Junior Member
|
|
Join Date: May 2008
Posts: 1
|
|
Actually, HTML forms aren't meant to be saved in a external document or other formats. If you need to save informations that are inserted by users who use your form then you properly need a database and Server-side script at your choice. Like PHP or Perl etc,. Once the form has process. You use the Server-side script to call information that has inserted by the user then transform this information into a external file or format other than HTML.
To make a HTML form is actually really simple just fallow the receipt bellow:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>HTML Forms</title>
</head>
<body>
<form method="post" action="fileToThisReadThisForm">
<fieldset>
<legend>RADIO</legend>
<label>Radio - Unchecked: <input type="radio" name="nameOfYourChoice" /></label>
<label>Radio - Checked: <input type="radio" name="nameOfYourChoice" checked="checked" /></label>
</fieldset>
<fieldset>
<legend>CHECKBOX</legend>
<label>Checkbox - Unchecked: <input type="checkbox" name="nameOfYourChoice" /></label>
<label>Checkbox - Checked: <input type="checkbox" name="nameOfYourChoice" checked="checked" /></label>
</fieldset>
<fieldset>
<legend>LIST MENU</legend>
<label>List Menu:
<select name="nameOfYourChoice">
<option>Select An Item...</option>
<option>First Choice</option>
<option>Second Choice</option>
<option>Third Choice</option>
</select>
</label>
</fieldset>
<fieldset>
<legend>TEXT</legend>
<label>Text: <input type="text" maxlength="225" name="nameOfYourChoice" value="Call text from database" /></label>
</fieldset>
<fieldset>
<legend>TEXT FIELD</legend>
<label>Text: <textarea name="nameOfYourChoice" cols="20" rows="5">Call text from database</textarea></label>
</fieldset>
<fieldset>
<legend>Buttons</legend>
<label>Reset: <input type="reset" name="nameOfYourChoice" value="Rset" /></label>
<label>Submit: <input type="submit" name="nameOfYourChoice" value="Submit" /></label>
</fieldset>
</form>
</body>
</html>
Copy and paste this code in a Notepad or Textedit then save it as .html extension. Preview in your browser you should be able to see this form. Although, you now have the form but the form itself will not do much that's because it is not dynamic. To make it dynamic you need Server-side script to store information and call information. Once you know how to create dynamic forms you need to learn to call informations that store in your database. You should normally call the information you need into a Server-script page then along with script transform an output page to another format such as PDF documents.
In reality, it is more complicated than that because you should validate the form as well... Good luck, I hope this helps.
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
All times are GMT. The time now is 10:23 PM.