Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. <?php
  2. // All the fields are now in *_POST
  3.  
  4. //set the content of the field as the value of the variable
  5. $lastname = $_POST['element_1_1'];
  6.  
  7. //make everything allcaps
  8. $lastname = strtoupper($lastname);
  9.  
  10. //should echo YOUR NAME IN CAPS
  11. echo 'the value from $_POST is : '.$_POST['element_1_1'].' and the value of $lastname is : '.$lastname;
  12. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement