Function for Creating HTML Objects

Written by @m_k_amin 25 December 2012

This is a little script that late you create HTML objects by functions. Just call the function and input the desired data like the example. Enjoy!

Code Snippet:

                                                
                                                <!-- this script is provided by https://www.phpfreecode.com coded by: Kerixa Inc. -->
<!-- This Script is from www.phpfreecpde.com, Coded by: Kerixa Inc-->

<?php
MkInput('Radio','Rd','1');
MkTA('TA1','How are you?',20,2);

function MkInput($type,$name,$value,$checked='checked'){
	echo "<input name='$name' type='$type' value='$value' checked='$checked'>";
}
function MkTA($name,$value,$cols,$rows){
	echo "<textarea name='$name' cols='$cols' rows='$rows'>$value</textarea>";
}
?>

<div style="text-align: left"><br>
<font face="Tahoma"><a target="_blank" href="http://www.phpfreecode.com/">
<span style="font-size: 8pt; text-decoration: none">PHP Free Code</span></a></font>
</div>
<a target='_blank' href='https://www.phpfreecode.com' style='font-size: 8pt; text-decoration: none'>Php Best Codes</a>                                                
                                            

Example:


About @m_k_amin

This user is pending a biography.

M

Comments


Here you can leave us commments. Let us know what you think about this code tutorial!

0 / 300

TRENDING POST
1
2
3
4
5
VISITORS
Online Users: 12
Recent Members: grkkid, Manaakividuinfo.com, karticksv, sava, tinatina
advertisement 2