View Single Post
Old 01-27-2013, 03:51 AM   PM User | #3
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,462
Thanks: 0
Thanked 499 Times in 491 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
Code:
<?php 
$fullname = '';
if (isset($_POST['fullname'])) $fullname = validateFullName($_POST['fullname']);
?>

<label for="fullname">Full Name
<span class="small">First Name Last Name</span>
</label>
<input type="text" value="<?php echo $fullname ?>" name="fullname" id="fullname"/>
If you are serving the (X)HTML5 as XHTML then you need the closing / but if you are serving it as HTML then you don't.
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/

Last edited by felgall; 01-27-2013 at 03:53 AM..
felgall is offline   Reply With Quote