Skip to content

Commit

Permalink
for tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenvanvliet committed Mar 21, 2008
1 parent 7ed4da7 commit a23f146
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tutorial_form.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
echo form::open();
echo 'Name: '.form::input('name') .'<br />';
echo 'Email: '.form::input('email').'<br />';
echo 'Preference: '.form::checkbox('preference[]','pizza').' Pizza <br />';
echo 'Preference: '.form::checkbox('preference[]','spaghetti').' Spaghetti <br />';
echo 'Preference: '.form::checkbox('preference[]','frenchfries').' French fries <br />';
echo 'Preference: '.form::checkbox('preference[]','sauerkraut').' Sauerkraut<br />';
echo 'Comment: '.form::textarea('comment').'<br />';
echo form::submit('Submit','Submit');
echo form::close();
?>

0 comments on commit a23f146

Please sign in to comment.