I am working on a Wordpress site and there is a feature we need that doesn't exist exactly the way we need it. Without creating a whole membership site we need to email users weekly emails with links to a dynamic page where they will be able to access the number of audio files based on their week (drip campaign). The emails don't come from Wordpress, they come from a CRM.
So: http://website.com/audiodownloadpage/?xyz=1 (they will be able to access one audio), http://website.com/audiodownloadpage/?xyz=2 (they will be able to access two audios) etc. etc.
This is the variable call using $_GET:
$abc = isset( $_GET[ 'xyz' ] ) ? $_GET[ 'xyz' ] : '';
I put the variable in the query_posts() function so it know how many to display.
I tried to add:
addslashes(mysql_real_escape_string(strip_tags()))
on recommendation of another thread on SO, but it broke the page. I think I'm doing it wrong. Could someone show me how to get the same variable with the protections in place? It's for one page and a closed audience, so I risked using this method and I would like to protect it as much as I can.