iall Posted January 11, 2008 Report Posted January 11, 2008 Hello , pie formas vēlos pievienot vārdu kurš jāieraksta komentējot. $vards = “dibens”; if ( $vards == “dibens” ) { echo “Viss ok!“; } echo “Njihuja ,taa neies cauri”; Pieņemsim es $vards vietā nevaru rakstīt $_POST['vards'] ?Zinu ,ka noliksiet mani tagad par elementāru lietu nezināšanu. (Guilty) Manuālī diez cik daudz nebija par IF.
Vebers Posted January 11, 2008 Report Posted January 11, 2008 $vards = “dibens”; if ( $_POST['vards'] == $vards ) { echo “Viss ok!“; } else { echo “Njihuja ,taa neies cauri”; }
v3rb0 Posted January 11, 2008 Report Posted January 11, 2008 ja tiešām ar manuāli nepietika, tad lasi par else wikipēdijā http://en.wikipedia.org/wiki/Conditional_%28programming%29
ray Posted January 11, 2008 Report Posted January 11, 2008 ja nelasa manuāli, tad protams liekas, ka manuālī nekā nav:)
Recommended Posts