-
Notifications
You must be signed in to change notification settings - Fork 1
/
form1.php
32 lines (22 loc) · 952 Bytes
/
form1.php
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
<html>
<head>
<title>My Form</title>
</head>
<body>
<?= validation_list_errors() ?>
<?= form_open('form1') ?>
<h5>Username</h5>
<input type="text" name="username" value="<?= set_value('username') ?>" size="50">
<h5>Password</h5>
<input type="text" name="password" value="<?= set_value('password') ?>" size="50">
<h5>Password Confirm</h5>
<input type="text" name="passconf" value="<?= set_value('passconf') ?>" size="50">
<h5>Email Address</h5>
<input type="text" name="email" value="<?= set_value('email') ?>" size="50">
<h5>What do you like?</h5>
<input type="checkbox" name="fruit[]" value="apple" <?= set_checkbox('fruit', 'apple', true) ?>>apple
<input type="checkbox" name="fruit[]" value="grape" <?= set_checkbox('fruit', 'grape') ?>>grape
<div><input type="submit" value="Submit"></div>
<?= form_close() ?>
</body>
</html>