Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE HTML>
- <HTML>
- <head>
- <title> home session </title>
- </head>
- <body>
- <form action = "includes/signup.inc.php" method = "POST">
- <input name = "first" type ="text" placeholder = "firstname" >
- <br>
- <input name = "last" type ="text" placeholder = "lastname" >
- <br>
- <input name = "email" type ="email" placeholder = "email" >
- <br>
- <input name = "uid" type ="text" placeholder = "uid" >
- <br>
- <input name = "pwd" type ="password" placeholder = "password" >
- <br>
- <button type ="submit" name ="button" >sign in</button>
- </form>
- <?php
- /*$sql = "select * from users ;" ;
- // mysqli_query :you send the cmd request and returne ressources if success else returns false
- $result = mysqli_query ( $conn, $sql ) ;
- //mysql_num_rows ( resource $result ) : int // Récupère le nombre de lignes d'un jeu de résultat
- $resultCheck = mysqli_num_rows ( $result );
- if($resultCheck > 0){
- while ($row = mysqli_fetch_assoc($result)){
- echo $row['pwd']."<br>";
- }
- }*/
- ?>
- <?php
- $fullURL = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]" ;
- if (strpos($fullURL,"signup=empty")==true){
- echo "<h1> you should fill all cases !</h1>" ;
- exit() ;
- }else{
- if (strpos($fullURL,"signup=success")==true){
- echo "you are signed up successfully !" ;
- exit() ;
- }
- }
- ?>
- </body>
- </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement