You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							72 lines
						
					
					
						
							2.7 KiB
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							72 lines
						
					
					
						
							2.7 KiB
						
					
					
				| <div class="row"> | |
|     <div class="col-12"> | |
|         <div class="section-title">Aggiungi parafarmacia</div> | |
|     </div> | |
|     <div class="col-12"> | |
| 
 | |
|         <div class="sheet-box p-4"> | |
| 
 | |
|         <?php | |
|             if($_POST['go']){ | |
| 
 | |
|                 $q=mysqli_query($conn, "INSERT INTO parapharmacy VALUES(null, | |
|                                         '".addslashes(trim(strtoupper($_POST['parapharmacy'])))."', '".addslashes(trim(strtoupper($_POST['city'])))."', | |
|                                         '".addslashes(trim($_POST['address']))."', '".addslashes(trim($_POST['phone']))."', | |
|                                         '".addslashes(trim($_POST['fax']))."', | |
|                                         '".addslashes(trim($_POST['web']))."', '".addslashes(trim($_POST['email']))."')"); | |
| 
 | |
|                 echo '<div class="col-10 text-center mx-auto my-5"> | |
|                         <p><i class="fa fa-check-circle font-alert p-4"></i></p> | |
|                         Parafarmacia aggiunta correttamente! | |
|                     </div>'; | |
| 
 | |
| 
 | |
|             }else{ | |
|         ?> | |
|             <form method="post"> | |
|                 <div class="row"> | |
|                     <div class="col-12 col-sm-6"> | |
|                         <span class="font-12">Parafarmacia</span> | |
|                         <input type="text" name="parapharmacy"> | |
|                     </div> | |
|                     <div class="col-12 col-sm-6"> | |
|                         <span class="font-12">Comune</span> | |
|                         <input type="text" name="city"> | |
|                     </div> | |
|                     <div class="col-12"> | |
|                         <span class="font-12">Indirizzo</span> | |
|                         <input type="text" name="address"> | |
|                     </div> | |
|                     <div class="col-12 col-sm-6"> | |
|                         <span class="font-12">Telefono</span> | |
|                         <input type="text" name="phone"> | |
|                     </div> | |
|                     <div class="col-12 col-sm-6"> | |
|                         <span class="font-12">Fax</span> | |
|                         <input type="text" name="fax"> | |
|                     </div> | |
|                     <div class="col-12 col-sm-6"> | |
|                         <span class="font-12">Sito internet</span> | |
|                         <input type="text" name="web"> | |
|                     </div> | |
|                     <div class="col-12 col-sm-6"> | |
|                         <span class="font-12">Email</span> | |
|                         <input type="text" name="email"> | |
|                     </div> | |
|  | |
|  | |
|                     <div class="col-12 text-right"> | |
|                         <button type="submit" name="go" value="1">Aggiungi parafarmacia</button> | |
|                     </div> | |
|                 </div> | |
|             </form> | |
|  | |
|             <?php | |
|                 } | |
|             ?> | |
|  | |
|         </div> | |
|  | |
|     </div> | |
| </div> | |
| 
 |