i am trying this to pass a value to the next PHP page:
$("#see_comments").attr({href: "comments.php?aid='"+imgnum+"'"});
and in the PHP file I am using:
$aid = $_REQUEST[aid];
echo $aid;
but this is displaying the output like this:
\'9\'
why is this happening?
//9 is the value i am passing.
Your webserver has magic quotes turned on. They’re a terrible thing, and if you can turn them off, I highly recommend you do.
Also, quoting values in your query string is unnecessary. Try this: