Insert image from another php iframe folder

Asked

Viewed 122 times

0

A webapp of calls. The person will open the call and has the option to take a photo as evidence. This photo will be sent to the server and its path stored in the database and variable $destino in recebeUpload.php and I need to put a iframe in modalVisualizar.php to display an image that the variable stores. This PHP is inside modalVisualizar.php.

<?php
            $destino = $_GET['destino'];
            $s = 
                '<iframe img src="/APIChamados/img/?destino=' .$destino. '" name="mostraEvidencia"></iframe>';
            echo $s;
        ?>
  • And what is the relationship between the files recebeUpload.php and modalVisualizar.php? One depends on the other, one includes the other or what? If they are independent, their variable will not exist in modalVisualizar.php.

  • Eita...will work like this: receiveUpload.php will receive the evidence images of the call. In modalVisualizar.php, admin visualizes the call with the images (3 images at most). So yes, they are independent. Is there a way to popular this iframe with variable information? PS,: Thanks for editing, I’m new here and can’t edit right yet.

  • You say the paths will be stored in the bank, so just search the bank instead of using the variable directly.

  • Right, but for each image it generates a different ID. That’s why I wanted to take the variable. I’ll try here.

  • It was not, it does not return the image. Iframe appears, but does not show the image.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.