Skip to content

Instantly share code, notes, and snippets.

@coreymcmahon
Created May 3, 2012 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coreymcmahon/2585275 to your computer and use it in GitHub Desktop.
Save coreymcmahon/2585275 to your computer and use it in GitHub Desktop.
Form used to add a blog post - http://www.symfonycentral.com
{#
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