link is : info.php?Submit=#img.png
so
<?php echo $_GET["Submit"]; ?>
but this wil show : #img.png
how to remove the "#" from the name so it shows : img.png ??
thanks
link is : info.php?Submit=#img.png
so
<?php echo $_GET["Submit"]; ?>
but this wil show : #img.png
how to remove the "#" from the name so it shows : img.png ??
thanks
Well, you could always modify the sender code to exclude the leading # (or %23 as @Cal pointed out).
Otherwise, try one of these:
//substring [1:len]
$yourString = substr($_GET["Submit"], 1);
//replace "#" with ""
$yourString = str_replace("%23", "", $_GET["Submit"], 1); //1 is the limit of #s to remove
//parse the URL, then get the path
$yourString = parse_url($_GET["Submit"], PHP_URL_PATH);