Posted by Hilarion on 11/27/61 11:25
>> Do something like the
>> following as the include file:
>>
>> <td valign="top">Data</td>
>> <td><input type="text" name="Data" value="<? echo $_REQUEST['Data'] ?>"
>> size="50"> </td>
>
> But is there a way to treat HTML file like PHP one? :>
If you do "include" (or "include_once" or "require") then any file included
this way is treated as PHP file, so if the file looks like Ken described it
(my modification which works also if short tags are turned off and
if $_REQUEST['Data'] contains double quotes or any other HTML special chars):
<td valign="top">Data</td>
<td><input type="text" name="Data"
value="<?php echo htmlspecialchars( $_REQUEST['Data'] ); ?>" size="50"></td>
then this should work as you wanted.
Hilarion
[Back to original message]
|