-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathphp_28.php
More file actions
31 lines (21 loc) · 707 Bytes
/
Copy pathphp_28.php
File metadata and controls
31 lines (21 loc) · 707 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
29
30
31
<!DOCTYPE HTML>
<html>
<body>
<form action="php_28.php" method="get">
Introdueix Nº de compte bancari: <input type="text" name="numeroBancari"><br>
</form>
<?php
if (isset($_GET['numeroBancari'])){
$numeroBancari=$_GET['numeroBancari'];
}
else{
$numeroBancari=" ";
}
echo "<br>"."$numeroBancari"."<br>";
$EEEE = substr($numeroBancari,0,4);
$OOOO = substr($numeroBancari,4,4);
$DD = substr($numeroBancari,8,2);
$NNNNNNNNNN = substr($numeroBancari,0,9);
//mostrar els numeros i les lletres per separat
echo "<br>"."Codi de la entitat: $EEEE"."<br>". "Codi de l'oficina: $OOOO"."<br>"."Dígits de control: $DD"."<br>"."Nº de compte: $NNNNNNNNNN";
?>