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
andmodalVisualizar.php
? One depends on the other, one includes the other or what? If they are independent, their variable will not exist inmodalVisualizar.php
.– Woss
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.
– Ulisses Schulz Realino Lima
You say the paths will be stored in the bank, so just search the bank instead of using the variable directly.
– Woss
Right, but for each image it generates a different ID. That’s why I wanted to take the variable. I’ll try here.
– Ulisses Schulz Realino Lima
It was not, it does not return the image. Iframe appears, but does not show the image.
– Ulisses Schulz Realino Lima