我有两个页面 index.php 和 currentmovies.php。我试图在 currentmovies.php 中显示给定电影的电影名称,但我无法显示整个名称,只显示第一个单词。我已经在 index.php 中编写了查询,并将值传递给 currentmovies.php。
例如:如果电影名称是“指环王”,则仅显示“主”
//index.php中的代码 echo "";
//code in currentmovies.php
<?php
echo "<b><font size='3'>Current Movie:",$_GET['movie_name']," </font></b>";
echo "<p> The movie ",$_GET['movie_name']," was released on ",$_GET['rdate']," and falls under the ",$_GET['genre']," category. </p>";
谢谢您的帮助