Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php if (isset($_SESSION['email'])) : ?>
  2. <p>Welcome you are logged in as: <strong><?php echo $_SESSION['email']; ?></strong></p>```
  3.  
  4. the 'email' needs passing across from the code above 'index.php' to the code below 'reviews.php'
  5.  
  6. ```<p>
  7. <input name="product_id" value="<?php echo "$var" ?>" readonly> <!-- get value from previous page-->
  8. <input name="track_name" value="<?php echo "$var_value" ?>" readonly> <!-- get value from previous page-->
  9. <input name="track_name" value="<?php echo "EMAIL_HERE" ?>" readonly> <!-- get value from previous page-->
  10. <!-- get value from previous page-->
  11. <input type="Submit" name="Submit" value="Submit"></p> ```
  12.  
  13. As this is an assignment I can only use PHP MYSQL HTML CSS
  14.  
  15. I would like the user name (email) to be echo out in a table as $var and $var_value is, they should then all print out beside each other in a form
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement