Jump to content

[SOLVED] php echo css error.


zgkhoo

Recommended Posts

You can use either of these below.  Which you use is your choice.

 

echo "
<html>
<head>
<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\" />
</head> 
</html>";

 

or, less typing

echo "
<html>
<head>
<link rel='stylesheet' type='text/css' href='style.css' />
</head> 
</html>";

echo
"
<html>
<head>
<link rel='stylesheet' type='text/css' href='style.css' />
</head> 

<table border=2>
<tr>
<td>";
<?php include 'menu.php'; 
?>



echo "
</td>
<td>
<form name='detail' action='record.php' method=post>
<table>



<tr>
<td>ic</td>
<td><input type='text' name='ic'  value=$row[iC]></td>
</tr>


<tr>
<td>fullname</td>
<td><input type='text' name='fullname'  value=$row[FullName]><td>
</tr>


<tr>
<td>gender</td>
<td><input type='text' name='gender'  value=$row[Gender]><td>
</tr>


<tr>
<td>dob</td>
<td><input type='text' name='dob'  value=$row[DOB]><td>
</tr>


<tr>
<td>address</td>
<td><input type='text' name='address'  value=$row[Address]><td>
</tr>

<tr>
<td>postcode</td>
<td><input type='text' name='postcode'  value=$row[Postcode]><td>
</tr>

<tr>
<td>address</td>
<td><input type='text' name='city'  value=$row[City]><td>
</tr>

<tr>
<td>state</td>
<td><input type='text' name='state'  value=$row[state]><td>
</tr>


<tr>
<td>phonenumber</td>
<td><input type='text' name='phonenumber'  value=$row[PhoneNumber]><td>
</tr>

<tr>
<td>hpnumber</td>
<td><input type='text' name='hpnumber'  value=$row[HpNumber]><td>
</tr>

<tr>
<td>banktype</td>
<td><input type='text' name='banktype'  value=$row[bankType]><td>
</tr>

<tr>
<td>accname</td>
<td><input type='text' name='accname'  value=$row[AccName]><td>
</tr>

<tr>
<td>accnumber</td>
<td><input type='text' name='accnumber'  value=$row[AccNumber]><td>
</tr>


<tr>
<td></td>
<td><input type='submit' name='button' value='update'><td>
<tr>
</form>
</td>
</tr>
</table>

";//end of echo

 

Parse error: syntax error, unexpected '<' in C:\xampp\htdocs\record.php on line 86

can menu.php include <head> </head> and include css inside? thanks..

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.