Php变量

时间:2014-06-06 20:49:55

标签: php forms variables

我不知道为什么我无法通过表单信息将我的变量传递到我的php页面。

你有什么线索,为什么我的$ _GET看不到我发送的变量。
我没有看到"记录"变量和" nb"变量也在我看到" firstname"。的列表时 干杯,
这是代码:

    <form id='login' action='show-details.php?record=1&domain=<?Php echo $_GET['domain']; ?>&nb=<?Php echo $_GET['nb']; ?>' method='GET' accept-charset='UTF-8'>


        echo '<input type="text" name="txt_firstname'.$i.'" value="'.utf8_encode($row['first_name']).'"onblur="AutoTrim(this)" >' . "</h5>";

1 个答案:

答案 0 :(得分:0)

php正确标记不是大写的:http://www.php.net/manual/en/language.basic-syntax.phptags.php。双引号可能是你问题的一部分:

<form id='login' action="show-details.php?record=1&domain=<?php echo $_GET['domain']; ?>&nb=<?php echo $_GET['nb']; ?>" method="GET" accept-charset="UTF-8">

 <?php
  echo '<input type="text" name="txt_firstname' . $i . '" value="'. utf8_encode($row['first_name']) . '" onblur="AutoTrim(this)" >';
  ?>
相关问题