This is driving me up the wall...
<td><input type="text" name="blurbimgpath" size="40" value="<?php if (isset($_POST['blurbimgpath'])) echo $_POST['blurbimgpath']; ?>" /></td>
<td class="Errtxt"><?php if (isset($blurbimgpathErr)) {
echo $blurbimgpathErr;
} elseif (isset($_POST['blurbimgpath'])) {
echo 'foo';
echo "<img src=\"".$_POST['blurbimgpath']."\" style=\"border: none;\" />";
} ?></td>
The first and second conditions work perfectly: If the is a blurbimgpath, it displays in the text field. If there is a blurbimgpathErr, that displays. What doesn't display is the "foo" (used for testing purposes), or the image. I don't understand why the blurbimgpath would be picked up by the first conditional, but not by the elseif.
Can anybody help me out here?
<td><input type="text" name="blurbimgpath" size="40" value="<?php if (isset($_POST['blurbimgpath'])) echo $_POST['blurbimgpath']; ?>" /></td>
<td class="Errtxt"><?php if (isset($blurbimgpathErr)) {
echo $blurbimgpathErr;
} elseif (isset($_POST['blurbimgpath'])) {
echo 'foo';
echo "<img src=\"".$_POST['blurbimgpath']."\" style=\"border: none;\" />";
} ?></td>
The first and second conditions work perfectly: If the is a blurbimgpath, it displays in the text field. If there is a blurbimgpathErr, that displays. What doesn't display is the "foo" (used for testing purposes), or the image. I don't understand why the blurbimgpath would be picked up by the first conditional, but not by the elseif.
Can anybody help me out here?
