note 94877 added to control-structures.elseif

From: Date: Mon, 30 Nov 2009 14:09:40 +0000
Subject: note 94877 added to control-structures.elseif
Groups: php.notes 
Request: Send a blank email to php-notes+get-163420@lists.php.net to get a copy of this message
index.php <html> <body> <form action='result.php' method=post> <input type='text' id='mood' name='mood' /> <input type='submit' name='submit' value='Show result' /> </form> </body> </html> result.php <?php $mood = $_POST['mood']; if ( $mood == "sad" ) { echo "Cheer up!"; } elseif ( $mood == "happy" ) { echo "That's great!"; } else { echo "You didn't type anything!"; } ?> ---- Server IP: 69.147.83.197 Probable Submitter: 83.108.8.153 ---- Manual Page -- http://www.php.net/manual/en/control-structures.elseif.php Edit -- https://master.php.net/note/edit/94877 Del: integrated -- https://master.php.net/note/delete/94877/integrated Del: useless -- https://master.php.net/note/delete/94877/useless Del: bad code -- https://master.php.net/note/delete/94877/bad+code Del: spam -- https://master.php.net/note/delete/94877/spam Del: non-english -- https://master.php.net/note/delete/94877/non-english Del: in docs -- https://master.php.net/note/delete/94877/in+docs Del: other reasons-- https://master.php.net/note/delete/94877 Reject -- https://master.php.net/note/reject/94877 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#163420) next »