Reply to Displaying text with include file.

Your name:

Reply:


Posted by Dave Kelly on 09/10/06 22:35

Given this html code page;
======begin
<html>
<body>
<!--#include file="outing.1.shtml"-->
<form action="form.php" method="GET">
<input type="hidden" name="op" value="ds">
<table width="468" border="0" cellspacing="0" cellpadding="0">
<tr>
<input type="hidden" name="id[1]" value="1">
<td>Name<input name="name[1]" type="text" size="30"></td>
<td>Email<input name="email[1]" type="text" size="60"></td>
<td>Phone<input name="phone[1]" type="text" size="15"></td>
</tr>
</table>
<input type="submit" name="submit" value="submit">
</form>

</body>
</html>
===========end
and this php code page;
==========begin
form.php
<?php
if($_GET["op"] == "ds") {
foreach ($_GET["name"] as $key=>$value) {
echo $_GET["name"][$key] ."-". $_GET["email"][$key] ."-".\
$_GET["phone"][$key] ."-". $_GET["id"][$key];

$fp=fopen("outing.1.shtml","a");
fwrite($fp,$_GET["name"][$key] ."-". $_GET["email"][$key] ."-".\
$_GET["phone"][$key]);
fclose($fp);
}
}
?>
========end

Both of these are on my IP server, EV1.

I would like the contents of 'outing.1.shtml' to be displayed hence
the <!--#include file="outing.1.shtml"--> in the HTML code.
Since it does not work, I must ask what is the correct to do this?
TIA
Dave

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация