如何使用Python将注册表单连接到MySQL?

时间:2019-01-21 03:33:19

标签: python html mysql xampp

我想知道如何通过使用Python作为服务器端脚本将以下代码连接到MySQL。

<form>
            <fieldset>
                <label style="font-size:22px;">Sign Up</label><br><br>
            First name:
            <input type="text" name="firstname" required/><br>
            Last name:
            <input type="text" name="lastname" required/><br>
            E-mail:
            <input type="email" name="email" required/><br>
            Password:
            <input type="password" name="pwd" required/><br>
            Gender:
            <input type="radio" name="gender" value="male" checked> Male
            <input type="radio" name="gender" value="female"> Female
            <input type="radio" name="gender" value="other"> Other<br>
            <input type="checkbox" name="yes" required/> I agree to the Terms & Conditions
            <input type="submit" style="width:45%;height:10%">
            <input type="reset" style="width:45%;height:10%">
            </fieldset>
        </form>

0 个答案:

没有答案