HTML and CSS Reference
declared in the document head or a linked external file can be used by the onclick event
handler on the input element as follows:
<option value="http://www.example.com" selected="selected">English</option>
<option value="http://ja.example.com"> 本語 </option>
<input type="button" value="Go!" onclick="goto_URL(this.form.langsel);" />
Note that other methods can also be applied such as server-side redirection, which
Basic forms can be created with the following steps:
Create an empty form.
Specify the location of the server-side script used to process data from the form.
<form action="register.php" >
Specify the method to be used for sending data. The form data can be sent as URL
variables ( method="get" ) or as an HTTP post ( method="post" ).
The get method appends the form data to the URL as name-value pairs, which makes it
possible to bookmark the result of the form submission. Because of the length limitations
of URLs, however, it cannot be ensured that all form data will be transferred. Moreover,
the get method is inadequate for transforming sensitive information such as passwords,
because the data will be visible in the address bar of the browser.
The post method sends the form data as an HTTP post transaction. This method has no
size limitations and is more secure than the get method.
<form method="post" action="register.php">