无法从html'form'获取值到'php'文件

问题描述:

这是我的表格

this is my form

<form  method="POST" action="result.php">
<input type="text" value=" " name="q" size="10" id="searchfield" title="searchfield" onFocus="clearText(this)" onBlur="clearText(this)" />
<input type="submit" name="search" value="" alt="Search" id="searchbutton" title="Search" />





这是php文件





and this is the php file

<?php 
@session_start(); 
include 'connections.php';
if (isset($_POST['q']) && $_POST['q'] != "")
{// I am unable to enter here...
$q = $_POST['q'];
$min_length = 1;
if(strlen($q) >= $min_length)
{
....







我在提交价值后无法进入条件..谁能告诉我原因?




I am unable to enter in if condition after submitting the value.. can anyone tell me why?

_POST [ ' q'])&&
_POST['q']) &&


_POST [ ' q']!=
{ // 我无法在这里输入...
_POST['q'] != "") {// I am unable to enter here...


q =
q =