wamp本地服务器,提交按钮后返回空白页面

时间:2015-08-06 21:25:46

标签: input wamp

输入代码:

<form method="post" action="input.php" enctype="multipart/form-data">

        <tr align="center">  
          <td><input required="required" type="text" class="inp" name="nume" size="30" style="text-align: center" placeholder="Introdu aici numele t&#259;u">
          </td>
        </tr>

        <tr align="center">
          <td><br /><br /><font face ="Impact" size="6">Selecta&#355;i una din op&#355;iunile de mai jos:<br/></font>
    <br /><br /><br /><select name="motiv" class="inp2">
    <option class="inp2" value="ridicare produs">Vreau s&#259; ridic un produs</option>
    <option class="inp2" value="predare produs" selected>Vreau s&#259; predau un produs</option>
    <option class="inp2" value="factura storno">Vreau s&#259; ridic factura storno</option>
    <option class="inp2" value="reclamatie">Vreau s&#259; fac o sesizare</option>
    <option class="inp2" value="informatii">Vreau s&#259; adresez o &#238;ntrebare</option>
    </select>
          </td>
        </tr>   
        <tr align="center">  
        <td><br /><br /><br /><input type="submit" name="submit" class="buttons" value="M&#258; &#206;NREGISTREZ"></td> </tr>  
        </table>
</form>

input.php代码:

<? //the example of inserting data with variable from HTML form //input.php

require 'db.php';

$nume = $_POST['nume']; $motiv = $_POST['motiv']; //inserting data order $order = "INSERT INTO flux_receptie            (motiv, nume_client)            VALUES          ('$motiv',          '$nume')";

//declare in the order variable $result = mysql_query($order);  //order executes if($result){    echo "<meta http-equiv=\"refresh\" content=\"0;URL=index2.php\">"; } else {  echo "<meta http-equiv=\"refresh\" content=\"0;URL=www.sss.ro\">"; } ?>

如果我按下提交按钮,它会显示一个空白页面:

} else {echo“”; }?&gt;

我正在使用Wamp web本地服务器。有谁知道这是什么问题?谢谢:))

0 个答案:

没有答案