1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
|
<html>
<head><title>forms page</title></head>
<body>
<form method="POST" id="simple_form">
<select name="select">
<option value="value1">Value 1</option>
<option value="value2" selected>Value 2</option>
<option value="value3">
Value 3
</option>
</select>
<input type="file" name="file" />
<input type="unknown" name="unknown" />
<input type="submit" name="submit" />
<button name='button'>Button</button>
</form>
<form method="POST" id="text_input_form">
<input name="foo" type="text" value="bar">
<input name="button" type="submit" value="text">
</form>
<form method="POST" id="radio_input_form">
<input name="foo" type="radio" value="bar">
<input name="foo" type="radio" value="baz" checked>
<input name="button" type="submit" value="radio">
</form>
<form method="POST" id="complex_radio_input_form">
<input name="__start__" value="item:mapping">
<input name="foo" type="radio" value="true">
<input name="__end__" value="item:mapping">
<input name="__start__" value="item:mapping">
<input name="foo" type="radio" value="true" checked>
<input name="__end__" value="item:mapping">
<input name="button" type="submit" value="radio">
</form>
<form method="POST" id="checkbox_input_form">
<input name="foo" type="checkbox" value="bar" checked>
<input name="button" type="submit" value="text">
</form>
<form method="POST" id="password_input_form">
<input name="foo" type="password" value="bar">
<input name="button" type="submit" value="text">
</form>
<form method="POST" id="textarea_input_form">
<textarea name="textarea">'foo&bar'</textarea>
</form>
<form method="POST" id="textarea_emptyline_form">
<textarea name="textarea">
aaa</textarea>
</form>
<form method="POST" id="multiple_checkbox_form">
<input type="checkbox" name="checkbox" value="10">
<input type="checkbox" name="checkbox" value="20" checked="checked">
<input type="checkbox" name="checkbox" value="30">
</form>
<form method="POST" id="multiple_buttons_form">
<button name="action" type="submit" value="deactivate">Deactivate</button>
<button name="action" type="submit" value="activate">Activate</button>
</form>
<input name="foo" type="text" value="early" form="outer_inputs_form">
<form method="POST" id="outer_inputs_form">
<input name="bar" type="text" value="bar">
</form>
<input name="button" type="submit" value="text" form="outer_inputs_form">
<!-- this input is equal (in the sense beautifulSoup checks equality)
to that in outer_inputs_form -->
<input name="bar" type="text" value="bar">
</body>
</html>
|