Form.page

Image:cookbook.jpg

Force.com Cookbook Sample Code
Chapter 13: Getting Started with Visualforce - Building a Form in a Visualforce Page

To download all the code samples, access the Cookbook. - Image:Key_icon.gif

<apex:page standardController="Account">
	<apex:form>
		<apex:pageBlock title="Hello {!$User.FirstName}!">
			You belong to the {!account.name} account.<p/>
			Account Name: <apex:inputField value="{!account.name}"/><p/>
			<apex:commandButton action="{!save}" value="Save New Account Name"/>
		</apex:pageBlock>
	</apex:form>
</apex:page>

Sample code provided by salesforce.com. All rights reserved.