-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathformular.php
31 lines (31 loc) · 905 Bytes
/
formular.php
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>
<head><title>Formular Web</title></head>
<body>
<h1>Formular de autentificare</h1>
<form action="dbt.php" method="post">
<?php
if(!isset($_COOKIE["username"])){
?>
<p>Name: <input type="text" name="name" size="20"
placeholder="Numele d-voastra" />
Surname: <input type="text" name="surname" size="20"
placeholder="Prenumele d-voastra" /> </p>
<p><input type="submit" value="Trimite"
title="Apasati butonul pentru a expedia datele spre server" /> </p>
<?php
}
else{
?>
<p>Name: <input type="text" name="name" size="20"
placeholder=<?php echo($_COOKIE["username"]) ?> />
Surname: <input type="text" name="surname" size="20"
placeholder="Prenumele d-voastra" /> </p>
<p><input type="submit" value="Trimite"
title="Apasati butonul pentru a expedia datele spre server" /> </p>
<?php
}
?>
</form>
</body>
</html>