此表单需要JavaScript验证,无论我尝试

时间:2015-12-12 13:00:31

标签: javascript php

此表格需要计算每门课程的费用(尚未完成)。它需要JavaScript验证,用户名和密码信息的PHP才能到达某个地方。凭证将用于PHP登录。你能帮忙吗?

<form form name="myform" id="myform" method="post">
    <p>
        <label for="name">Name</label>
        <input type=text name="name" placeholder="Enter your full name" />
    </p>
    <p>
        <label for="gender">Gender</label>
        <input type="radio" name="gender" value="M"> Male
        <input type="radio" name="gender" value="F"> Female
    </p>

    <p>
        <label for="birthday">Date of Birth</label>
        <input type="date" name="bday" />
    </p>
    <p>
        <label for="username">Create Username</label>
        <input type="text" id="username" name="username">
    </p>
    <p>
        <label for="password" name="name">Password</label>
        <input type="password" id="password" name="username" value="">
    </p>
    <p>
        <label for="Comments">Address</label>
    </p>
    <textarea cols="40" rows="5" name="Address" id="address" placeholder="Address"></textarea>
    <br>
    <p>
        <label for="postcode">Postcode</label>
        <input type="text" name="postcode" id="postcode" placeholder="Enter your postcode" />
    </p>
    <p>
        <label for="contactnumber">Contact Number</label>
        <input type="number" id="contactnumber" placeholder="Enter your number" />
    </p>
    <p>
        <label for="email">Email</label>
        <input type="text" name="email" id="email" placeholder="Enter your email" />
        </label>
    </p>
    <p>
        <label for="select">Select Course</label>
    </p>
    <select id="course" name="courses">
        <option value="000" selected="selected">[Select course]</option>
        <option value="screenplay">Screenplay FL0330 04-01-16</option>
        <option value="camerawork">Camerawork FL566 05-01-16</option>
        <option value="soundrecording">Sound Recording FB700 06-01-16</option>
        <option value="lighting">Lighting FN250 11-01-16</option>
        <option value="editing">Editing FB420 12-01-16</option>
        <option value="3dgraphics">3D Graphics FA554 13-01-16</option>
        <option value="makeup">Make up and Prosthetics FA128 15-01-16</option>
    </select>
    <br>
    <input type="submit" name="submit" value="Submit Now">
</form>

0 个答案:

没有答案