Declimination: ASP programming introduction series articles COPY Since http://www.cnbruce.com/blog/ Part Run code Please go to this station to test the truth, whether it is ASP, PHP or JSP is time to network programming, Inseparable from the user's interaction. The platform of the human-computer dialogue is basically relying on the corresponding text, the list box is input, and then submitted to the database via the button. So learning online programming must understand these input platforms: form (form) its basic format is as follows:
... form>. The interior can be divided into three categories: input, select, textarea, first look at the "internal parameter parameter Name: It is used to indicate the unique name of the form, which is convenient for a page to build multiple forms without confusion, of course, is to accept Page confirmation relationship. Parameter Action: Obviously, it means that all content in the current form will be sent to a page to process. Processing includes accepting information, database comparison, addition, modification, etc. Parameters Method: The form of submission of the form, including two methods: POST and GET. POST is the transfer information content, GET is transmitting a URL value, and the specific usage will be described in the "Built-in Object Request" in the next section to see INPUT related INPUT represents an input object in the Form form, which is also TYPE type Different and sub-text input boxes, password input boxes, radio / check box, submission / reset button, etc., the following introduces. 1, TYPE = text input type is text, this is the most used by our most use, such as login input user name, registration input phone number, email, home address, etc. Of course, this is also the default type of INPUT. Parameter Name: The text input box name is also represented. Parameter size: The length of the input box. Parameter MaxLength: The maximum number of input characters is allowed in the input box. Parameter Value: The default value of the default value in the input box readonly: Indicates that only the box can only be displayed, and modifications cannot be added.
Your name:
form>
[Ctrl A All Select: You can modify some code first, then press Run] 2, type = password Don't tell me, I understand the password input box, the biggest difference is to display when entering the information in this input box. For the confidential characters. The parameters and "type = text" are similar.
Your Password:
password length is less than 15
form>
[CTRL A All Selection Tips: You can modify some code first, then press Run] 3, Type = file When you upload pictures in BBS, you can't make it unpredictable when you upload an attachment in email :) Provide a file directory input Platform, parameters have name, size.
Your file:
form>
[Ctrl A All Select Tips: You can modify some code first, then press Run] 4, Type = Hidden is very worth noting one, usually referred to as hidden domain: If a very important information needs to be submitted to the next page, But it is no longer or not. In a word, you can't see where Hidden is in the page. The most useful is the value of Hidden.
Your Hidden Info Here:
form>
Alert ("The value of the hidden domain is" Document.form1.yourhiddeninfo.value)
script>
[CTRL A All Selection Tips: You can modify some code, then press Run] 5, Type = Button Standard's Windows style button, of course, let the button jump to a page and need to join the JavaScript code
Your Button:
">"> ">
form>
[Ctrl a All Select "You can modify some code first, then press Run] 6, type = checkbox multi-selection box, often select hobby, personality, and other information when registering. The parameters have Name, Value, and special parameters Checked (indicating the default selection) is actually the value of the value, which is also Value, which is also Value. (Attach: Name value can be different, but not recommended.)
A:
B:
C:
form>
The Name value can be different, but it is not recommended
A:
B:
C:
form>
[Ctrl a All Select Tips: You can modify some code first, then press Run] 7, type = radio, the radio box, appears in the multi-selected page setting. The parameters are also Name, Value, and special parameters checked. Unlike Checkbox, the Name value must be the same, otherwise it will not be possible. Of course, it is also a value value that is submitted to the processing page.
A:
B:
C:
form>
Below is an example of different Name values, you can't achieve multiple choice results
A: B:
C:
form>
[Ctrl a All Select Tips: You can modify some code first, then press Run] 8, type = image compares the alternative one, look at the effect, you can use the submission picture
Your imgsubmit:
form>
[Ctrl A All Select Tips: You can modify some code first, then press Run] 9, type = Submit and type = reset is "Submit" and "Reset" two button Submit main function is to make everything in Form Submit an Action page handling, RESET gives a quick clear function of all filling content.
form>
[Ctrl a All Selection Tips: You can modify some code first, then press the run] INPUT's Type has 10, still a lot, huh, huh, then look at the select-related SELECT mainly to make a drop-down menu, jump Go to the menu, (drop) list. Its itself has embedded code ... option>, the Option parameter value value is the value passed, Option also has parameter selected, indicating that the default is selected. 1. The drop-down menu is just a menu display.
AAA option>
bbb option>
CCC option>
select>
form>
Alert ("The default selection value of the menu is" Document.form1.SelectWhat.Value) script>
[Ctrl a All Select Tips: You can modify some code first, then press Run] 2, the jump menu adds JavaScript to the jump menu on the basis of the drop-down menu.
>>>>>>>>>
website connection ... option>
CN-Bruce option>
Blue! DEA option>
IT365CN option>
seclect>
[Ctrl a All Select Tips: You can modify some code, then press Run] 3. The biggest difference between the drop-down list and the drop-down menu is SELECT more than a size value, which is not the length of the length, but the upper and lower height of the list. Of course, there is still more important: the menu can only choose one, and the list can be selected, the special parameter is Multiple
SIZE = 1 is simply a drop-down menu
AAA option>
bbb option>
CCC option>
select>
form>
Size> 1 You will find a big difference
AAA option>
bbb option>
ccc option>
select>
form>
Joined the multiple discovery can be selected, including Shift for quick select and Ctrl
AAA option>
bbb option>
ccc option> select>
form>
[Ctrl a All Select Tips: You can modify some code first, then press Run] Fourth, the final attention TextArea can understand the TextArea text area as a magnified text input box. Its parameters are not Value, the default value is set between ... textarea>. The other parameters also ROWS, represents the number of lines of the text area; parameter cols, represents the number of columns in the text area. There is also a parameter WARP. When Warp = Off indicates that the automatic wrap in the text area, it is of course not writing whether the default is automatic.
5 line 20 columns, not automatically transfer textarea>
form>
[CTRL A All Selection Tips: You can modify some code first, press Run] Final Summary: INPUT According to Type 10 class, SELECT is divided into menus and lists from the option, and Textarea has a list of text input area worth recommending. Two articles of articles Title form:
http://www.blueidea.com/tech/web/2003/377.asp
Form effect:
http://www.cnbruce.com/blog/showlog.asp?cat_id=5&log_id=271