Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
 
3
class Contact extends TPage
4
{
5
	/**
6
	 * Event handler for the OnClick event of the submit button.
7
	 * @param TButton the button triggering the event
8
	 * @param TEventParameter event parameter (null here)
9
	 */
10
	public function submitButtonClicked($sender, $param)
11
	{
12
		if ($this->IsValid)  // check if input validation is successful
13
		{
14
			// obtain the user name, email, feedback from the textboxes
15
			$name = $this->Name->Text;
16
			$email = $this->Email->Text;
17
			$feedback = $this->Feedback->Text;
18
 
19
			// send an email to administrator with the above information
20
			$this->mailFeedback($name, $email, $feedback);
21
		}
22
	}
23
 
24
	protected function mailFeedback($name, $email, $feedback)
25
	{
26
		// implementation of sending the feedback email
27
	}
28
}
29
 
30
?>