很抱歉給您帶來不便,我對 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']); ?>
- 如果你去 [https://uniq.edu.mx/movie 1 并選擇一部電影,它會帶你到照片和概要,我用表格提取該資訊
- 提取的資訊正確發送到envio.php。
我該怎么做,而不是向我顯示影像的完整 url,而是將其顯示為插入到目標頁面中的影像?
uj5u.com熱心網友回復:
您需要為此輸出 HTML 影像標記:
<img src="<?= $_POST['urlimage']; ?>"/>
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/334768.html
