Guest User

Untitled

a guest
May 20th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. <?php
  2. if(isset($_REQUEST['your_param_name'])){
  3. // Do stuff here like save the parameter passed in
  4. ?>
  5. Thank you for submitting the form.
  6. <?php
  7. } else {
  8. ?>
  9. Render the page normally with the form here.
  10. <form action="" method="post">
  11. <label for="your_param_name">Param Name: </label>
  12. <input id="your_param_name" type="input" name="your_param_name" />
  13. <input type="submit" value="Submit Form" />
  14. </form>
  15. <?php
  16. }
  17. ?>
Add Comment
Please, Sign In to add comment