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
Next revision Both sides next revision
dvprog_03 [2017-09-01 13:34]
Daniel Viström
dvprog_03 [2019-04-15 08:56]
Daniel Viström
Line 30: Line 30:
     echo 'tal1 är: ' . $_GET['tal1'] . '<br>';     echo 'tal1 är: ' . $_GET['tal1'] . '<br>';
  
-    if(isset($_POST['fname']) && isset($_POST['lname'])){  // För att undvika notice-meddelanden.+    if(isset($_POST['fname']$_POST['lname'])){  // För att undvika notice-meddelanden.
       echo $_POST['fname'] . ' ' . $_POST['lname'] . ' heter du.';       echo $_POST['fname'] . ' ' . $_POST['lname'] . ' heter du.';
       echo '<br>';       echo '<br>';