From 51db38c9423a1d3bf476bb30054cf3288ee16c88 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 3 Apr 2007 21:43:22 +0000 Subject: Added blog-tutorial. --- .../samples/day1/blog/protected/pages/Contact.php | 30 ++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 demos/blog-tutorial/samples/day1/blog/protected/pages/Contact.php (limited to 'demos/blog-tutorial/samples/day1/blog/protected/pages/Contact.php') diff --git a/demos/blog-tutorial/samples/day1/blog/protected/pages/Contact.php b/demos/blog-tutorial/samples/day1/blog/protected/pages/Contact.php new file mode 100644 index 00000000..b6ce575e --- /dev/null +++ b/demos/blog-tutorial/samples/day1/blog/protected/pages/Contact.php @@ -0,0 +1,30 @@ +IsValid) // check if input validation is successful + { + // obtain the user name, email, feedback from the textboxes + $name = $this->Name->Text; + $email = $this->Email->Text; + $feedback = $this->Feedback->Text; + + // send an email to administrator with the above information + $this->mailFeedback($name, $email, $feedback); + } + } + + protected function mailFeedback($name, $email, $feedback) + { + // implementation of sending the feedback email + } +} + +?> \ No newline at end of file -- cgit v1.2.3