Hello,
I have the following code that I use to redirect a client to one of two forms. For some reason the value field is not being replaced with the actual value held in $agent_id, instead the code is just echoed as shown by the SOURCE after execution.
Am I missing something? Looks pretty straight forward.
Thanks much,
Gary
<?php
$uploadimage = "<form action=\"http://www.hintsforhomes.com/agent_upload_image.php\" method=\"post\" name=\"uploadimage\">
<input type=\"hidden\" name=\"agent_id\" value=<?php print($agent_id);?><REDIRECTING TO UPLOAD IMAGE PAGE></form>";
$replaceimage = "<form action=\"http://www.hintsforhomes.com/upload_agent_image_7102947205_6119043877_22990032345/index.php\" method=\"post\" name=\"replaceimage\">
<input type=\"hidden\" name=\"agent_id\" value=<?php print($agent_id);?><REDIRECTING TO REPLACE IMAGE PAGE></form>";
if ($agent_image == "")
echo $uploadimage;
else
echo $replaceimage;
?>
As you can see the value is not 23, it is <?php print(23);?>
--- View from Source after execution ---
<form action="http://www.hintsforhomes.com/agent_upload_image.php" method="post" name="uploadimage">
<input type="hidden" name="agent_id" value=<?php print(23);?><REDIRECTING TO UPLOAD IMAGE PAGE></form>