Ajax GET problem
Ajax GET problem
Hi everyone
I'm fairly new to ajax/jquery and I'm having some trouble trying to get a simple GET to work.
I have a page called 1.php with the following code:
-
<?php
$id = $_GET["id"];
echo "Put the news article with id = $id here!";
?>
This all works fine when I link directly to the page (I.e
http://www.mysite.com/1.php?id=5
), however when I load this page through jquery (so the url becomes
http://www.mysite.com#1
) the GET functionality stops working.
Am I doing something fundamentally wrong or something?
I'd really appreciate any help on this as it's been driving me mad for a couple of days now!!
Thanks
Ed