Ok i'm making a news posting script and so far the script works fine by itself, but when I try to include it into a page the links open up a new page instead of just changing the current page that the script is included on. The links are all dynamic and they just call different functions within the script. The script itself runs off of one file so I know the links are not opening a new file.
Is there anything special I have to do to get my dynamic links to open on the page the script is included on?
Also is there any special way to go about coding a script that is made to be included in other pages?