GB_001 Posted November 7, 2010 Share Posted November 7, 2010 Hello, The number sign does not seem to be showing up after a GET request. I've set up a script for an example: text.php: <?php session_start(); mysql_connect("localhost", "*****", "*******************9") or die(mysql_error()); mysql_select_db("*****") or die(mysql_error()); function safe($var) { $var=mysql_real_escape_string(addslashes(htmlspecialchars($var, ENT_QUOTES, 'UTF-8'))); return $var; } $N=safe($_GET['N']); echo"$N"; ?> Say the url is text.php?N=### None of the symbols show up. Thankyou, GB. Quote Link to comment https://forums.phpfreaks.com/topic/218038-parsing-sign/ Share on other sites More sharing options...
Alex Posted November 7, 2010 Share Posted November 7, 2010 In URLs, the octothorpe has a specific meaning. To use it in another way inside the URL you'll need to use urlencode / urldecode. Quote Link to comment https://forums.phpfreaks.com/topic/218038-parsing-sign/#findComment-1131492 Share on other sites More sharing options...
GB_001 Posted November 8, 2010 Author Share Posted November 8, 2010 In URLs, the octothorpe has a specific meaning. To use it in another way inside the URL you'll need to use urlencode / urldecode. Thankyou, I found an excellent way of parsing AJAX url params to PHP via Jquery. Quote Link to comment https://forums.phpfreaks.com/topic/218038-parsing-sign/#findComment-1132001 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.