very basic echo question.

Discussion in 'PHP' started by baris22, Nov 22, 2007.

  1. #1
    hello,

    i am using

    
    
    echo '
    			<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    			<html xmlns="http://www.w3.org/1999/xhtml">
    			<head>
    			<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    			<title></title>
    			
    			<link href="'.$path.'css.css" rel="stylesheet" type="text/css" />
    			
    			</head>
    
    			<body>
    				
    			<table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
    		  <tr>
    		    <td>&nbsp;</td>
    		  </tr>
    		  	</table>';
    
    
    
    PHP:
    I want to include top.php before the table. How can i do it?

    thanks
     
    baris22, Nov 22, 2007 IP
  2. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #2
    
    
    echo '
    			<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    			<html xmlns="http://www.w3.org/1999/xhtml">
    			<head>
    			<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    			<title></title>
    			
    			<link href="'.$path.'css.css" rel="stylesheet" type="text/css" />
    			
    			</head>
    
    			<body> ';
    
    include("top.php");
    
    echo '<table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
    		  <tr>
    		    <td>&nbsp;</td>
    		  </tr>
    		  	</table>';
    
    
    
    PHP:
     
    commandos, Nov 22, 2007 IP
  3. baris22

    baris22 Active Member

    Messages:
    543
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    60
    #3
    i am so stupid. how did i not think this?
     
    baris22, Nov 22, 2007 IP