form.html Example File | Qt WebKit Examples 5.5

- Qt 5.5
- Qt WebKit Examples
- Form Extractor Example
- form.html Example File
- Qt 5.5.1 Reference Documentation

# form.html Example File

webkitwidgets/formextractor/form.html

    <html><body>
    <h1>
    The Green People Book Club
    </h1>

    <p>
    Welcome to The Green People Book Club. Please register to obtain a membership with us.
    </p>
        <form onsubmit="formExtractor.submit()">
        <table>
        <tbody><tr>
            <td>
            First name:
            </td>
            <td>
                <input type="text" id="firstname">
            </td>
        </tr>
        <tr>
            <td>
            Last name:
            </td>
            <td>
                <input type="text" id="lastname">
            </td>
        </tr>
        <tr>
            <td>
            Gender:
            </td>
            <td>
            <input type="radio" name="gender" id="genderMale" value="Male"> Male
            <input type="radio" name="gender" id="genderFemale" value="Female"> Female
            </td>
        </tr>
        <tr>
            <td colspan="2">
            <input type="checkbox" id="updates" value="receive">
            Check here if you would like to receive regular updates from us:
            </td>
        </tr>
        </tbody></table>
        <input type="submit" value="Submit">
        </form>

    </body></html>