PHP
PHP: Hypertext Preprocessor,widely-used ,open source ,general-purpose scripting language. ,cross-platform,
HTML-embedded server-side scripting language,for web development
PHP: Hypertext Preprocessor,widely-used ,open source ,general-purpose scripting language. ,cross-platform,
HTML-embedded server-side scripting language,for web development
Hypertext Preprocessor : scripting langauage for creating web pages
options for performing different activities
commands used while creating, editing, formatting and debugging code.
EasyPortable Free extensiveDatbaseSupportSecure
Synax is similar to most commonly used programming languages
used to write and edit code
+
used inside the <form> tag...... It sends form data to the server.
Information sent (from html form ) is visible to everyone in browsers address bar. can't be used to share sensitive information
action : specfies the URL OF web page to receive data
Method : Get (if not matter others can view data)or Post (if u don't want anyone to see information in address bar)
multiple web pages that share the user data with each other
Data in each web page remains unchanged
<html>
<body>
<?php
echo "Welcome to Pushpam Computers<br>";
echo "Lets us learn php".phpversion();
?>
</body>
</html>
<?php
echo "I \'ll play tomorrow"."<br>";
echo "<marquee>";
echo "I will study, practice now\\*.*"."<hr>";
echo "</marquee>";
?>
<?php
$var = 'PHP Tutorial';
?>
<html>
<body>
<h3><?php echo $var; ?></h3>
<p>PHP:Hypertext Preprocessor</p>
<p><a href="https://www.w3resource.com/php-exercises/php-basic-exercise-2.php">Go to the <?php echo $var; ?></a>.</p>
</body>
</html>
<?php
$c=1000;
$p=1200;
$s=1400;
echo "<table border=1 cellspacing=0 cellpading=0>
<tr> <td><font color=blue>Computer</td> <td>$c$</font></td></tr>
<tr> <td><font color=blue>Printer</td> <td>$p$</font></td></tr>
<tr> <td><font color=blue>Speaker</td> <td>$s$</font></td></tr>
</table>";
?>
<?php
$d = '5';
for ($n=1; $n<=10; $n++)
{
$ans = $d * $n;
echo "<br>";
echo $ans ;
}
?>