Professional Documents
Culture Documents
تطبيق7
تطبيق7
تطبيق7
DOCTYPE html>
<html>
<head>
<?php
function hello()
{
echo "welcome";
}
?>
<title>PHP</title>
</head>
<body>
<?php
hello ();
?>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<?php
function info($name,$age)
{
}
echo square(3);
?>
<title>PHP7</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>PHP7</title>
</head>
<body>
<form method="post">
No1:<input type ="Number" name ="No1">
No1:<input type ="Number" name ="No2">
<button type = "Number" name ="add">+</button>
</form>
<?php
if (isset($_POST['add'])){
echo $_POST['No1'] + $_POST['No2'];
}
?>
</body>
</html>