[ create a new paste ] login | about

Link: http://codepad.org/QThcTGdO    [ raw code | output | fork ]

PHP, pasted on Sep 6:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<form method="post" action="form.php">

        <table>
            <tr>
                <td colspan="3">Convert html to doc</td>
            </tr>
            <tr>
                <td colspan="3">Choose the answer</td>
            </tr>
            <tr>
				<td><input type="radio"  name="004" value="1" <?=($_POST['004']=='1' ? 'checked="checked"' : '')?>/>1</td>
				<td><input type="radio"  name="004" value="2" <?=($_POST['004']=='2' ? 'checked="checked"' : '')?>/>2</td>
				<td><input type="radio"  name="004" value="3" <?=($_POST['004']=='3' ? 'checked="checked"' : '')?>/>3</td>
            </tr>
            <tr>
                <td colspan="3"><input type="submit" name="submit" value="submit" /></td>
            </tr>
        </table>
</form>


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<form method="post" action="form.php">

        <table>
            <tr>
                <td colspan="3">Convert html to doc</td>
            </tr>
            <tr>
                <td colspan="3">Choose the answer</td>
            </tr>
            <tr>
				<td><input type="radio"  name="004" value="1" />1</td>
				<td><input type="radio"  name="004" value="2" />2</td>
				<td><input type="radio"  name="004" value="3" />3</td>
            </tr>
            <tr>
                <td colspan="3"><input type="submit" name="submit" value="submit" /></td>
            </tr>
        </table>
</form>


Create a new paste based on this one


Comments: