I need your help!!!
my script looks like this :
<table cellpadding=0 border=0 cellspacing=0><tr><td>
<table width=500 >
<tr>
<td class=std colspan=2>
<?php echo C_GARDERUNOEIL?>
</td>
</tr>
<tr>
<td class=boldRed align=center colspan=2>
<?php echo $error ?>
<br><br>
</td>
</tr>
<tr>
<td width="45%" class=smallBold align=right>
<?php echo C_JOUEUR ?> 1.
</td>
<td align=left>
<input type="text" name="Player1" value="<?php echo $Player1 ?>" maxlength=12 size=15>
</td>
</tr>
<tr>
<td class=smallBold align=right>
<?php echo C_JOUEUR ?> 2.
</td>
<td align=left>
<input type="text" name="Player2" value="<?php echo $Player2 ?>" maxlength=12 size=15>
</td>
</tr>
</table>
</td></tr></table>
I want to make a function which replace all the expressions like
<?php echo C_(word only in capital letters)?>
by the word value
for exemple I want to replace
<?php echo C_JOUEUR ?> by the word "joueur"
(I think that doing loops would be useful)
be careful the html and the other php codes must be executed!!!
this script must lead to a table with input cells
good luck!