Thanks for the reply.
I am starting to get it going, but I need your help a little more:
$content='
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>'.$subject.'</title>
<meta content="text/html; charset=windows-1250">
<link href="msg/style.css" type="text/css" rel="stylesheet">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<script language="Javascript" src="msg/javascript.js"><!--
//-->
</script>
</head>
<body>
';
$content.=$header;
You have this $content variable that gives an html header, then you start posting things:
$content.='
<div align="center"><center>
<table border="0" width="95%"><tr>
<td>
<p align="center"><a href="#new">Post a reply</a> ||
<hr>
<p align="center"><b>'.$subject.'</b></p>
<br>';
Since you have the html headers, you cannot just start adding PHP, which is what I want to do. I want to post an image, only if the user types in a certain name in the form on the page. I've tried this:
Before the HTML, I wrote:
$image = $_POST['name'];
$echo = ($image == 'Hello') ? ' <img src=\"http://images.macrumors.com/vb/images/statusicon/user_online.gif\">' : ''; }
and then I wrote below in the HTML:
echo $echo;
Would this work?
Fill free to provide some other scripts.
Jeff