I'm trying to create a template of HTML tags within a textarea box for users who may not be familiar with html. In addition, I am autogenerating figure tags from a previous form that had captured the number of images an article will contain. My problem is that when I post the form, nothing is displayed (I just tried to display it by using echo $article). Can you look at my code below and tell me what I'm doing wrong?
Thanks so much!
print "<FORM ACTION='test2.php' method='post'><textarea name='article' rows=20 cols=35 wrap='physical'>
<head>
<title></title> </head>
<body>";
for ($i = 1; $i<=$numberimages;$i++)
{ print" <figure $i>";
}
print" <p></p>
</body>
$article</textarea>";
test2.php
echo $article;