X-Git-Url: http://git.shiar.net/minimedit.git/blobdiff_plain/f9b855c241ac7273399d1d405b63071b86b87faa..177953fe451a3e393cf9d63bc977de11544bd395:/contact.php diff --git a/contact.php b/contact.php index 691ff41..9d0b1bc 100644 --- a/contact.php +++ b/contact.php @@ -22,6 +22,14 @@ function mailform($input = []) } switch ($source) { + case 'melding': + if (empty($input['login'])) { + return "Inloggen is verplicht om een melding te plaatsen."; + } + if (empty($input['body'])) { + return "Geen bericht opgegeven."; + } + break; case 'bbq': if (empty($input['naam']) or empty($input['huis'])) { return 'De bedoeling is juist dat je opgeeft wie er komt.'; @@ -70,6 +78,9 @@ switch ($source) { case 'bbq': print "

Bedankt voor je deelname. Tot ziens!

"; break; + case 'melding': + print "

Bedankt voor de melding. Na goedkeuring zal het hier geplaatst worden.

"; + break; default: print '

Bedankt voor uw reactie!

'; }