[PHP] Re: html and php in the same document

2003-07-25 Thread Comex
[EMAIL PROTECTED]
Bill Pilgrim:
 If php and html are to be included in the same document, does the
 document extension always have to be .php  ?
No, but /why/ do you want to change it?



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



[PHP] Re: HTML and PHP

2003-06-10 Thread Jean-Christian Imbeault
Christian Ista wrote:
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 (?)  ?
Sure, instead of using ?php ? use echo or print.

switch($constant_lastupdate[$i][3]){
  case '1' :
  echo img src='design/logo_windows.gif' alt='' width='12' height='10'
 border='0';
break;
And so on ...

Jean-Christian Imbeault

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


[PHP] Re: HTML and PHP

2003-06-05 Thread Esteban Fernandez
If you want separate the code for the design, maybe u want use Smarty. The
other is put all in just on ?php ?, and use the echo or printf sentences.

EF.


Christian Ista [EMAIL PROTECTED] escribió en el mensaje
news:[EMAIL PROTECTED]
 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] Re: html to php with echo

2002-09-03 Thread Erwin

Adi wrote:
 I try to transform a html file in -php file, but i have errors in
 it(Error in page.)
 Where is mistake?

On my machine their both good.
But a question raises? Why do you use echo in this case?
Why don't you just give the filename the extension .php? Just rename the
file from index.html to index.php.

HTH
Erwin



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