-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelloworld.php
More file actions
58 lines (44 loc) · 1.01 KB
/
helloworld.php
File metadata and controls
58 lines (44 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<!DOCTYPE HTML>
<html>
<head>
<title>Example</title>
</head>
<body>
<?php
echo"hello world\n";
$x=5;
echo $x;
echo "print hello world"
//github test
$name= "saman";
echo"hello my name is $name \n";
echo"my name is ".$name." and im ".$x."years old\n";
$num1=20;
$num2=30;
//echo $num2*$num1;
//php while loop
$whileNum=0;
while($whileNum<5){
echo "This is number $whileNum\n";
$whileNum++;
}
$doWhileNum=1;
do{
echo "This number is $doWhileNum\n";
$doWhileNum++;
}while($doWhileNum<=6);
echo" ";
<form action="checklogin.php" method="post">
Username:<br><input type="text" name="username"/>
<br><br>
Password:<br><input type="password" name="pwd" />
<br><br>
<input class="button" type="submit" value="Login"/>
<input class="button" type="button" name="cancel" value="Cancel" onClick="window.location='index.php';" />
</form>
//array
$numbersa=array("one","two","three");
echo ($numbersa);
?>
</body>
</html>