如果不使用 Ajax 刷新页面,我将如何提交以下表单?我需要通过 'toid' 发送 user1_id 和来自 textarea 'newmsg' 的内容。
形式
<form action="insert.php" method="POST" class="form_statusinput">
<input type="hidden" name="toid" value="<?php echo $user1_id ?>">
<span class="w">
<textarea class="input" name="newmsg" id="newmsg" placeholder="Say something" autocomplete="off"></textarea>
</span>
<button type="submit" value="Submit">Feed</button>
</form>