Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
amprog_05_ex2 [2017-06-08 09:31]
Daniel Viström
amprog_05_ex2 [2017-09-01 14:54] (current)
Line 23: Line 23:
 $i=0;​  ​ // Skriver ut värdena i arrayen $i=0;​  ​ // Skriver ut värdena i arrayen
 while ($i < count($_SESSION['​arr1'​])) {  while ($i < count($_SESSION['​arr1'​])) { 
-  echo $_SESSION['​arr1'​][$i] . ' '; ​ // OBS! på index '​arr1'​ i arrayen $_SESSION ligger arrayen vi har värden i (dvs array i array)+  echo $_SESSION['​arr1'​][$i] . ' '; ​  
 +  // OBS! på index '​arr1'​ i arrayen $_SESSION ligger arrayen vi har värden i (dvs array i array)
   $i++;   $i++;
  
Line 29: Line 30:
  
 <form method="​post">​ <form method="​post">​
-  Skriv nåt: <input type="​text"​ name="​inmatning" ​/><​br ​/+  Skriv nåt: <input type="​text"​ name="​inmatning"><​br>​ 
-  <input type="​submit"​ name="​submit"​ value="​Skicka" ​/>+  <input type="​submit"​ name="​submit"​ value="​Skicka">​
 </​form>​ </​form>​