Professional CodeIgniter, Thomas Myer
Chapter 8: Last-Minute Upgrades
264
echo form_open(`admin/subscribers/sendemail');
echo "
<
p
>
<
label for='subject'
>
Subject
<
/label
>
<
br/
>
";
$data = array(`name' =
>
`subject', `id' =
>
`subject', `size' =
>
50,
`value'=
>
$subject
);
echo form_input($data);
echo "
<
/p
>
";
echo "
<
p
>
<
label for='message'
>
Message
<
/label
>
<
br/
>
";
$data = array(`name' =
>
`message', `id' =
>
`message', `rows' =
>
20, `cols' =
>
50,
`value'=
>
$msg
);
echo form_textarea($data);
echo "
<
/p
>
";
echo "
<
p
>
".form_checkbox(`test', `true', TRUE) . "
This is a test!
<
/p
>
";
echo form_submit(`submit','send email');
echo form_close();
?
>
When you ' re all done, your efforts should look like Figure 8 - 10 if you send a test e - mail.
Figure 8 - 10
c08.indd 264
c08.indd 264
6/10/08 5:37:35 PM
6/10/08 5:37:35 PM