ohdang888 Posted April 6, 2009 Share Posted April 6, 2009 i have a long variable with HTML and special characters that i want to pass through a url. I'm going to store that var in my database after i clean it with mysql_real_escape_string, strip_tags(with some allowable tags), and add_slashes to it but the problem i see is the id="blah" or class="blah" tags in the html....like it will break it up... is there something i can wrap around it to keep it intact... like ?var={HTML HERE} ?????????? thanks! Quote Link to comment https://forums.phpfreaks.com/topic/152721-solved-pass-longggg-variables-through-get/ Share on other sites More sharing options...
Philip Posted April 6, 2009 Share Posted April 6, 2009 Why not just use POST? Quote Link to comment https://forums.phpfreaks.com/topic/152721-solved-pass-longggg-variables-through-get/#findComment-801973 Share on other sites More sharing options...
corbin Posted April 6, 2009 Share Posted April 6, 2009 You should most likely use POST, but just incase you have some valid reason, you will probably be interested in urlencode. Quote Link to comment https://forums.phpfreaks.com/topic/152721-solved-pass-longggg-variables-through-get/#findComment-801986 Share on other sites More sharing options...
ohdang888 Posted April 6, 2009 Author Share Posted April 6, 2009 ya thanks i'll look into that function... i'm building an app platform Quote Link to comment https://forums.phpfreaks.com/topic/152721-solved-pass-longggg-variables-through-get/#findComment-801994 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.