Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8226443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T15:46:18+00:00 2026-06-07T15:46:18+00:00

Currently i have it, when a user replies to a thread; I use $id

  • 0

Currently i have it, when a user replies to a thread; I use $id = $_GET['id'] and pass the variable to hidden readonly input in the reply form.

Another approach i use is a data attribute, which i retrieve with jQuery and then submit the form with ajax. A data attribute could be changed in firebug.

What is good method to prevent tampering with html hidden fields/data-attributes?

I thought about using sessions..For example if a user has multiple windows open: page1.php?id=1, page2.php?id=2, page3.php?id=3. How would i store and retrieve the session? I can’t have a definitive session name with multiple windows open.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T15:46:21+00:00Added an answer on June 7, 2026 at 3:46 pm

    Obviously you can’t prevent the user from changing the HTML client-side (you can make it difficult, but not impossible). If you’re worried about people replying to threads they have no permission to reply to, you should handle that server side (check permissions before posting). That way the user can change the ID all they want, but they can still only reply to threads they are allowed to reply to.

    Another option could be to use encrypted id in the query string, but in this case I would still check the permissions server-side.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a wysiwyg iframe where the user can submit input to another
I currently have form that checks if a user has unsubmitted changes when they
I currently have a user's table which contains a one-to-one relationship for Youtube OAuth
Currently I have a User table that has a toys_owned column that is an
I currently have three classes User , UserProfile , and Vendor . User is
I currently have two different models: User and Project . The User model has
I currently have two Backbone models: user and project. I would like to have
I currently have built a system that checks user IP, browser, and a random-string
I currently have some action associated with when the user types something in a
i have a Reply class: class Reply(models.Model): reply_to = models.ForeignKey(New) creator = models.ForeignKey(User) reply

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.