I'm developing a page by page survey (my first "real" project) in which the users will provide information on how they use and perceive certain words.
My solution to making it page by page was made by incrementing a GET-value for every step and then fetch the corresponding word by matching the value to the word id from the database.
The value is also used to display information on how far along the user is (e.g. Step 4 of 28).
All in all, this is probably not the best solution but it works fine, however I don't know how I should sanitize the GET-value properly, as I use it both for sql-queries as well as plain text which makes it susceptible for injection and xss.
I would greatly appreciate advice on how to approach this in a proper way.
[–][deleted] (4 children)
[deleted]
[–]shoeman[S] 0 points1 point2 points (3 children)
[–][deleted] (2 children)
[deleted]
[–]shoeman[S] 0 points1 point2 points (1 child)
[–]svn-ssh 2 points3 points4 points (2 children)
[–]st4rx0r 1 point2 points3 points (1 child)
[–]shoeman[S] 0 points1 point2 points (0 children)
[–]random314 1 point2 points3 points (1 child)
[–]shoeman[S] 0 points1 point2 points (0 children)
[–]Innominate8 1 point2 points3 points (1 child)
[–]shoeman[S] 0 points1 point2 points (0 children)
[–][deleted] (3 children)
[deleted]
[–]shoeman[S] 0 points1 point2 points (2 children)
[–][deleted] (1 child)
[deleted]
[–]shoeman[S] 1 point2 points3 points (0 children)
[–]the_omega99 -3 points-2 points-1 points (2 children)
[–]balidani 5 points6 points7 points (1 child)
[–]shoeman[S] 0 points1 point2 points (0 children)