Add POST form to shorten link, shortened links to database, configuration file
This commit is contained in:
		
							parent
							
								
									657ee72ecb
								
							
						
					
					
						commit
						513050e131
					
				
					 5 changed files with 150 additions and 12 deletions
				
			
		
							
								
								
									
										20
									
								
								static/main.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								static/main.html
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,20 @@
 | 
			
		|||
<!DOCTYPE html>
 | 
			
		||||
<html lang="en">
 | 
			
		||||
<head>
 | 
			
		||||
    <meta charset="UTF-8">
 | 
			
		||||
    <title>liteshort</title>
 | 
			
		||||
</head>
 | 
			
		||||
<body>
 | 
			
		||||
    <form>
 | 
			
		||||
        Long URL:
 | 
			
		||||
        <br>
 | 
			
		||||
        <input name="long" type="url">
 | 
			
		||||
        <br>
 | 
			
		||||
        Short URL:
 | 
			
		||||
        <br>
 | 
			
		||||
        <input name="short" type="text">
 | 
			
		||||
        <br> <!-- TODO: Use CSS to do linebreaks -->
 | 
			
		||||
        <input type="submit" value="Shorten" formmethod="post">
 | 
			
		||||
    </form>
 | 
			
		||||
</body>
 | 
			
		||||
</html>
 | 
			
		||||
		Reference in a new issue