我有一个用HTML设计的简单表单,它有文本框和一个按钮,我应该在用户按下表单时读取输入文本的内容
是这样的
<form name="input" action="searchquery.php" method="get">
<input type="text" class="textbox" name="query" value="Search:" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Search';}">
<input type="submit" value="" />
我正在使用 PHP 读取值 获取读取
当我输入古兰经并按搜索按钮时,其附加 URL 正确http://localhost/testapps/smartphone/searchquery.php?query=quran like this but when i type same
阿拉伯语 القرآن الكريم
它附加了一些具有大量垃圾价值的东西,我需要放置任何特殊的东西来使用阿拉伯语
http://localhost/testapps/smartphone/searchquery.php?query=%26%231575%3B%26%231604%3B%26%231602%3B%26%231585%3B%26%231570%3B%26%231606%3B+%26%231575%3B%26%231604%3B%26%231603%3B%26%231585%3B%26%231610%3B%26%231605%3B
首先搜索,然后发布问题。看到这里 阿拉伯文本
它可以帮助您...
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
使用此代码并完成将其添加到您生成的HTML页面中,您的问题将得到解决