-2
在此輸入表單中。輸入不會被正確地轉移到sql數據庫中。 sqlAddUser.php = pastebin.com/W9BH0D3s 形式爲:表單不會將數據傳遞到SQL輸入
<form action="sqlAddUser.php" method="post">
<div class="row">
<div class="large-12 columns">
<label>Username:
<input type="text" placeholder="Insert Username here!" name="user"/>
</label>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<label>Password:
<input type="password" placeholder="Insert Password Here!" name="password" />
</label>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<label>Email:
<input type="text" placeholder="[email protected]" name="email" />
</label>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<label>First Name:
<input type="text" placeholder="Ben" name="firstName" />
</label>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<label>Surname Name:
<input type="text" placeholder="Brown" name="surname" />
</label>
</div>
</div>
<input type="submit">
</form>
然後,這時候通過我的INSERT INTO腳本運行甫一沒有被添加到數據庫中。
過得好變量?從sqlAddUser.php顯示你的代碼 – 2014-09-10 22:30:18
如果你在sqlAddUser.php上var_dump($ _ POST),你看到了什麼? – Ferox 2014-09-10 22:31:02
http://pastebin.com/W9BH0D3s是代碼。和var_dump給出了數組(0){} – 2014-09-10 22:34:33