By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
460,022 Members | 1,398 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 460,022 IT Pros & Developers. It's quick & easy.

error on page

P: 1
Hello
I recently started up my own website and aquired an affiliates directory script. Where webmasters can add thier site to my directory and visitors can rate the sites listed. All has been going really well until I wanted to rate a site in the directory, but I keep getting an "error on page error" in the bottom left hand corner of my screen. like this:



I have looked everywhere in my directory.php file but I can't seem to find what is causing the error.

Here is the section of the directory.php file:

If you would like to see the complete directory.php file you can email me for it here: my email The code is too long to add here in this post.

</script>
<p class="bodymd"><?php echo $image; ?><a class=categorylinks href="<?php echo $PHP_SELF ?>?ax=out&amp;id=<?php echo $id ?>" target=_blank><?php echo $name ?></a>
<br /><span class="bodysm">Added: <?php echo $date_added ?> | Total Clicks: <?php echo $clicks ?> | Rating: <font color=FF0000><B><?php echo $rate_stat ?></B></font> | <a href="#" onclick="blocking('<?php echo $id ?>');return false;">Rate This Website</a> | <a href="<?php echo $PHP_SELF ?>?ax=deadlink&amp;id=<?php echo $id ?>">Notify of Dead Link</a> <BR></span>
<br /><?php echo $dsc ?><hr size="1" noshade="noshade" />
<br /><div id="<?php echo $id ?>"><form action="<?php echo $PHP_SELF ?>?ax=addrate&amp;id=<?php echo $id ?>&amp;cat_id=<?php echo $formcat_id; ?>&amp;l=<?php echo $list_type; ?>" method="post" id="form<?php echo $id; ?>" onsubmit="return validate_rate<?php echo $id; ?>();"><span class="bodysm">Rate This Website</span> <select name="rating" class="bodysm"><option>- choose --</option><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select> <input type="submit" name="submit" value="Rate <?php echo $name ?>" class="bodysm" /></div></form>
</p>
<script type="text/javascript">

The problem arises when I click the link "Rate This Website". When I click the link nothing happens and I get the "error on page" at the bottom. All the other links work fine.

Can anyone please help me?

Regards
Richard
Sep 7 '06 #1
Share this Question
Share on Google+
1 Reply


Banfa
Expert Mod 5K+
P: 8,965
If you double click that icon it will display a box that will tell you the line in the file on which the error occured (you may have to press the 'Details' button).

However this is not the file and line number that is on the server because the server ran the PHP script before sending the file to the client and it is this file that these details refer to. If you look at your page source through IE you will find that it has no PHP in it (because it has already run at the server) and it is this file you you start looking in to find the error.

Once you have worked out what the error is then you can go back to your original file to work out how the code that produced the error was produced.

Generally it is easier to trake thing like this in FireFox than IE because it has better diagnostic tools.
Sep 7 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.