Saturday, August 31, 2013

EMBEDDING PHP

Example: 1

<?php

echo "Alex";

?>

Example: 2


<?php

echo "<b>Alex</b>";

?>


Example: 3

<html>

<b>
<?php

echo "Alex";

?>
</b>
</html>


Example: 4

<html>

<u>
<?php

echo "Alex";

?>
</u>
</html>


Example: 5

<html>

<input type='text' name='name' value='Alex' >

</html>


Example: 6

<html>

<input type='text' name='name' value='Alex'>

</html>


Example: 7

<html>

<input type='text' name='name' value='<?php echo"Alex"; ?>'>

</html>

Example:8

<html>

<input type='text' name='name' value='<?php echo $_GET['name']; ?>'>

</html>


Example:9

<html>

<input type='text' name='name' value='<?php echo phpinfo(); ?>'>

</html>

No comments: