|
Posted by Ken Robinson on 09/30/21 11:25
<talthen.z-serwera.o2@nospam.pl> wrote in
news:df52e5$m6q$1@atlantis.news.tpi.pl (in part):
> Hello,
> I have a file that looks like this:
> =========
> <td valign='top'>Data</td>
> <td><input type='text' name='Data' value="$_REQUEST['Data']"
> size='50'> </td>
> =========
> I would like to include this in my script, but I want the $_REQUEST to
> be automatically filled.
> When I do:
> include 'file';
> I have this printed to output AS-IS.
That's because your file is HTML, not PHP. Do something like the
following as the include file:
<?
echo '<td valign="top">Data</td>'."\n";
echo '<td><input type="text" name="Data" value="' . $_REQUEST['Data'] .
'" size="50"> </td>' , "\n";
?>
Or
<td valign="top">Data</td>
<td><input type="text" name="Data" value="<? echo $_REQUEST['Data'] ?>"
size="50"> </td>
Ken
Navigation:
[Reply to this message]
|