Web Pages - HTML Forms


  Translation results:

Web Pages

Web Pages - HTML Formssyntax

A form is the portion of an HTML document where input controls (text boxes, check boxes, radio buttons, drop-down lists) are placed.

Web Pages - HTML Formsexample

<html>
<body> 
@{
if (IsPost) { 
string companyname = Request["companyname"]; 
string contactname = Request["contactname"]; 
<p>You entered: <br />
Company Name: @companyname <br />
Contact Name: @contactname </p>
}
else
{
<form method="post" action="">
Company Name:<br />
<input type="text" name="CompanyName" value="" /><br />
Contact Name:<br />
<input type="text" name="ContactName" value="" /><br /><br />
<input type="submit" value="Submit" class="submit" />
</form>
}
} 
</body> 
</html>

Popular Recommendations

Home

Videos

Q&A