-2
这是我的HTML表单代码。表格(HTML)到MySQL数据库通过PHP
<html>
<form action="send_post.php" method="post">
<h3>Category:</h3>
<input type="text" name="post_category">
<h3>Post title:</h3>
<input type="text" name="post_title">
<h3>Post tags (a,b,c...):</h3>
<input type="text" name="post_tags">
<h3>Post (half):</h3>
<input type="text" name="post_half">
<h3>Post (score):</h3>
<input type="text" name="post_score">
<input type="submit">
</form>
</html>
我有数据库设置,但我如何将这些东西连接到数据库?
所以,当你点击提交,数据会进入到数据库中。
检查您的数据库品牌在PHP的世界。 – SayusiAndo