在结果php中显示从表单到图像的url



很抱歉给您带来不便,我不懂php或html,但是我已经调查过了,找不到任何

我有一个简单的形式的代码在index.html

<form enctype="multipart/form-data" action="/movie/envio.php" method="POST">
<label for="urlimage">Imagen obtenida:</label>
<input type="text" id="urlimage" name="urlimage" value="https://image.tmdb.org/t/p/w500{{movie.poster_path}}"><br><br>
<label for="sinopsis">Sinopsis:</label>
<input type="text" id="sinopsis" name="sinopsis" value="{{movie.overview}}"><br><br>
<p><input type="submit" /></p>
</form>

在装运。php

Imagen Obtenida: <?php echo htmlspecialchars($_POST['urlimage']); ?><br>
Sinopsis: <?php echo htmlspecialchars($_POST['sinopsis']); ?>
  1. 如果你去[https://uniq.edu.mx/movie1 . gov .然后选择一个电影,它会带你到照片和简介,我用
  2. 的形式提取这些信息
  3. 提取的信息被正确地发送到environment .php。

我怎么做,而不是显示我的图像的完整url,它显示它作为一个图像插入到目标页面?

你需要输出HTML图像标签:

<img src="<?= $_POST['urlimage']; ?>"/>

最新更新