Exemplo n.º 1
0
?>
" class="text" required />
	</p>
	<p class="<?php 
echo formError('password' == $error);
?>
">
		Password:
		<input name="password" value="<?php 
echo h(@$_POST['password']);
?>
" class="text" required pattern=".{5,}" />
		(5- chars)
	</p>
	<p class="<?php 
echo formError('name' == $error);
?>
">
		Display name:
		<input name="name" value="<?php 
echo h(@$_POST['name']);
?>
" class="text" required maxlength="30" pattern=".{4,30}" />
		(4-30 chars)
	</p>

	<p><input type="submit" /></p>
</form>

<p><?php 
echo l('Log in here!', 'login.php');
Exemplo n.º 2
0
">
                    <div class="form-group">
                        <div class="form-group">
                        <label for="Name">Name</label>
                        <input type="text" name="name" class="form-control" placeholder="Name" value="<?php 
update("users", "name");
?>
">
                        <span class="help-block" style="color: red"><?php 
formError("name");
?>
</span>
                    </div>
                    <div class="form-group">
                        <label for="content">Content</label>
                        <textarea name="aboutMe" class="form-control" placeholder="About me"><?php 
update("users", "aboutMe");
?>
</textarea>
                        <span class="help-block" style="color: red"><?php 
formError("aboutMe");
?>
</span>
                    </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>
            </div>
        </div>
    </body>
</html>
Exemplo n.º 3
0
                    <div class="form-group">
                        <div class="form-group">
                        <label for="title">Title</label>
                        <input type="text" name="title" class="form-control" rows="1" placeholder="title" value="<?php 
formContentSession("title");
?>
">
                        <span class="help-block" style="color: red"><?php 
formError("title");
?>
</span>
                    </div>
                    <div class="form-group">
                        <label for="content">Content</label>
                        <textarea name="content" class="form-control" placeholder="content"><?php 
formContentSession("content");
?>
</textarea>
                        <span class="help-block" style="color: red"><?php 
formError("content");
?>
</span>
                    </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>
            </div>
        </div>
    </body>
</html>