Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    272
    Thanks
    63
    Thanked 1 Time in 1 Post

    form hidden input

    I have a <form> with a hidden input.. how do I make it so users cant go into the source code and change it? Thanks!
    Or another workaround instead of a hidden input?
    Last edited by markman641; 02-12-2012 at 07:30 AM.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,642
    Thanks
    6
    Thanked 1,005 Times in 978 Posts
    Quote Originally Posted by markman641 View Post
    I have a <form> with a hidden input.. how do I make it so users cant go into the source code and change it?
    You can’t. That’s the nature of HTML and the internet.

    Quote Originally Posted by markman641 View Post
    Or another workaround instead of a hidden input?
    It depends on what you are trying to do. Please elaborate.

  • #3
    Regular Coder
    Join Date
    Jul 2011
    Posts
    272
    Thanks
    63
    Thanked 1 Time in 1 Post
    Quote Originally Posted by VIPStephan View Post
    You can’t. That’s the nature of HTML and the internet.



    It depends on what you are trying to do. Please elaborate.
    Well its a promo code thing. The person enters the code into the form and it posts into dopromo.php. Although they are able to change the username if they inspect element
    Last edited by markman641; 02-12-2012 at 08:48 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •