Hello,
I'm rather new to php, so my troubles here may very well be the result of something trivial. However, I've written a script that takes input from another form and displays info about the listing requested. I am trying to get it to display a button next to the listing if a certain file exists. This button should link to another php page, and display that file (it's an image). But i can't seem to get to it to work.
Here is the code:
if (file_exists($popup_path))
{
echo '<div align="center"><p class="bodytext">';
echo '<form name="popup_form" action="popup.php" method="post">';
echo '<input type="hidden" name="popup_path" value="$popup_path">';
echo '<input type="submit" name="popup_path2" value="pop up"></form>';
this is part of a function [it is my understanding that i should still be able to pass the form data]
Here is the other page [popup.php]
<head>
<title>Pop Up</title>
</head>
<body>
why doesn't this work??
<br>
<?
echo $popup_path;
echo '<br>';
?>
<img src='<?php echo $popup_path ?>'>
</body>
Any insight would be greatly appreciated.
Thanks
Justin