Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Login_Form
- {
- using System;
- using System.IO;
- static class Login_Form
- {
- static void Main()
- {
- Console.WriteLine("Content-Type: text/html\r\n");
- string htmlContent = File.ReadAllText("../www/login-form.html");
- Console.WriteLine(htmlContent);
- string post = Console.ReadLine();
- string[] postSplited = post.Split(new[] {'&', '='}, StringSplitOptions.RemoveEmptyEntries);
- string username = postSplited[1];
- string password = postSplited[3];
- Console.WriteLine($"Hi {username}, your password is {password}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement