modimil

Embedding PHP

May 1st, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.81 KB | None | 0 0
  1. http://phpmysql-academy.blogspot.in/
  2.  
  3. Example: 1
  4.  
  5.     <?php
  6.  
  7.      echo "Alex";
  8.    
  9.     ?>
  10.    
  11. Example: 2
  12.  
  13.  
  14.     <?php
  15.  
  16.     echo "<b>Alex</b>";
  17.    
  18.     ?>
  19.  
  20.  
  21. Example: 3
  22.  
  23.     <html>
  24.  
  25.     <b>
  26.     <?php
  27.    
  28.     echo "Alex";
  29.    
  30.     ?>
  31.     </b>
  32.     </html>
  33.  
  34.  
  35. Example: 4
  36.  
  37.     <html>
  38.  
  39.     <u>
  40.     <?php
  41.    
  42.     echo "Alex";
  43.    
  44.     ?>
  45.     </u>
  46.     </html>
  47.  
  48.  
  49. Example: 5
  50.  
  51.     <html>
  52.  
  53.     <input type='text' name='name' value='Alex' >
  54.  
  55.     </html>
  56.  
  57.  
  58. Example: 6
  59.  
  60.     <html>
  61.  
  62.     <input type='text' name='name' value='Alex'>
  63.  
  64.     </html>
  65.  
  66.  
  67. Example: 7
  68.  
  69.     <html>
  70.  
  71.     <input type='text' name='name' value='<?php echo"Alex"; ?>'>
  72.  
  73.     </html>
  74.  
  75. Example:8
  76.  
  77.     <html>
  78.  
  79.     <input type='text' name='name' value='<?php echo $_GET['name']; ?>'>
  80.  
  81.     </html>
  82.  
  83.  
  84. Example:9
  85.  
  86.     <html>
  87.  
  88.     <input type='text' name='name' value='<?php echo phpinfo(); ?>'>
  89.  
  90.     </html>
Advertisement
Add Comment
Please, Sign In to add comment