Created
May 3, 2012 12:16
-
-
Save coreymcmahon/2585275 to your computer and use it in GitHub Desktop.
Form used to add a blog post - http://www.symfonycentral.com
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{# | |
This is a VERY basic form with two fields, which we'll | |
use to create the object to insert into the database. | |
#} | |
<form action="" method="POST"> | |
{# | |
Note: we normally wouldn't construct a form like this in | |
Symfony, as Symfony provides us with a WHOLE framework | |
dedicated to forms. | |
#} | |
<div>Please enter your post in below.</div> | |
<div> | |
<label>Title:</label> <input type="text" name="title" /> | |
</div> | |
<div> | |
<label>Body:</label><br/> | |
<textarea name="body" cols="50" rows="20"></textarea> | |
</div> | |
<div> | |
<input type="submit" /> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment