Skip to main content

SELECT


§The two following examples are <SELECT></SELECT> elements, where the attributes are set differently.
The Select elements attributes are:
§NAME: is the name of the variable to be sent to the CGI application.
§SIZE: this sets the number of visible choices.
§MULTIPLE: the presence of this attribute signifies that the user can make multiple selections. By default only one selection is allowed.

Example on <SELECT>
<BODY bgcolor=lightblue>
<form>
Select the cities you have visited:
<SELECT name=“list”  size=5>
<option> London</option>
<option> Tokyo</option>
<option> Paris</option>
<option> New York</option>
<option> LA</option>
<option> KL</option>
</SELECT>
</form>
</BODY>


Output

Comments

Popular posts from this blog

Introduction of SQL

Introduction of SQL SQL (Structure Query Language)  was initially developed at IBM by Donald D. Chamberlin and Raymond F. Boyce in the early 1970s. This version, initially called SEQUEL (Structured English Query Language), was designed to manipulate and retrieve data stored in IBM's original quasi-relational database management system. Features of SQL SQL is not a case sensitive language. Every commands in SQL should ends with semicolon(;). SQL can also called as sequel (SEQUEL). SQL Sub Language SQL is mainly divided into four sub language Data Definition Language(DDL) Data Manipulation Language(DML) Transaction Control Language(TCL) Data Control Language(DCL) Only for remember You can remember all these command like below; DDL Commands "dr. cat" d-Drop, r-Rename, c-Create, a-Alter, t-Truncate. DML commands "sudi". s-Select, u-Update, d-Delete, i-Insert.

SQL - Create Table

SQL First Query Before you start your first sql query, need to install any database software, here i will use oracle 10g. If you have no any database just download and install. Note:  At the time of installation give user name system and password: system. Steps to get start with SQL Run SQL First connect with database. For connect with database type: connect system and type password system Now you can create table. Create table Syntax CREATE TABLE table_name ( column_name1 data_type(size), column_name2 data_type(size), column_name3 data_type(size), .... ); Example CREATE TABLE Employee ( emp_id int(5), name varchar(20), salary int(10) ); Employee table emp_id name salary

Python - Function

Define Function in Python Function is block of codes. Python provide built-in and user define both types of function. Built-in function User defined function Built-in function This type of functions are pre-defined, you can directly use in your program. For example  print function is used for display message on screen or console. Print hello world in python a = "Hello World!" print a User defined function This type of functions are defined by programmer. According to your requirement you can defined you function name and it's functionality. In python you can define any function by using  def keyword. Syntax for define function in python def function_name ( parameter ) function body Define function in python def my_function(fname): print(fname + " Refsnes") my_function ("Emil") my_function ("Tobias") my_function ("Linus") Output Emil Refsnes Tobias Refsnes Linus Refsnes Explanation ...