you would have to use echo or print statements...

-----Original Message-----
From: Christian Ista [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 04, 2003 3:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] HTML and PHP


Hello,

Look the code below. Is it an obligation to multiply the number of <?php ?>.
There is no other way ? not possible to use only an open php tag (<?php) and
a clode php tag (?>)  ?

Christian,


<?php
   switch($constant_lastupdate[$i][3]){
   case '1' :?>
    <img src="design/logo_windows.gif" alt="" width="12" height="10"
border="0">
    <?php
    break;
   case '2' :?>
    <img src="design/logo_mac.gif" alt="" width="10" height="10" border="0">
    <?php
    break;
   case '3' :?>
    <img src="design/logo_linux.gif" alt="" width="9" height="11"
border="0">
    <?php
    break;
   }
  ?>



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to