-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstring.php
More file actions
28 lines (28 loc) · 711 Bytes
/
Copy pathstring.php
File metadata and controls
28 lines (28 loc) · 711 Bytes
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
<html>
<head>
<link rel="stylesheet" href="mystyle.css">
<style>
a{display:block;width:100px;}
</style>
</head>
<body>
<form method="post">
<span class="row>">Welcome</span>
<span class="row"><span class="cols">Please give the input here :</span><span class="cols"><input type="text"name="string"></span></span>
<span class="row"><span class="cols"><input type="submit" value="Test"></span></span>
</form>
<?php
if(!is_numeric($_POST['string'])){
?>
<span class="output"><?php echo 'The given input is string'; ?> </span>
<?php
}
else if( $res == 0){
?>
<span class="output"><?php echo 'The given input is Not a string'; ?> </span>
<?php
}
?>
<a href="index.php">Back</a>
</body>
</html>