471,319 Members | 1,601 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.

How can I get this link to work ?

290 100+

I have my site analyzer script nearly working, but
the link that I am trying to pass back to the
query is not being accepted.

The easiest way to explain what I mean is to
show you the script on my server:

When you follow the link below you will see an output
list of links that are taken from the website ( one of mine)

Clicking on the "open" works fine ( that url is opened
in a new window) but clicking on the displayed link is suppoed
to result in the link being queried - but it doesn't work.

Here is the working script.

Site Analyzer

You need to hit the "Go" button

Here is the code that should make the displayed link become the
subject of the script.

Expand|Select|Wrap|Line Numbers
  2. <FONT COLOR=#FFFFFF>Links Found:<br>Click one to send the ninja to investigate it</FONT>
  3. </CENTER></B></TD></TR>\n";
  4. if (count($ninja->link_array) <= 0)
  5.     {
  6.     echo "<TR><TD VALIGN=TOP COLSPAN=2 BGCOLOR=#DDDDDD><CENTER>No Links Found</CENTER></B></TD></TR>\n";
  7.     }
  9. for ($i = 0 ; $i < count($ninja->link_array) ; $i++)
  10.     {
  12. [<A HREF=\"" . $ninja->link_array[$i] . "\" TARGET=_blank>open</A>]&nbsp;&nbsp;&nbsp;Link " . ($i + 1) . ": </TD>
  14. <A HREF=\"index.php?url=" . urlencode($ninja->link_array[$i]) ."&words=$words\">" . $ninja->link_array[$i] . "</A>
  15. </TD></TR>\n";
  16.     } 
Can anyone see what I have done wrong ?

(Maybe I also need to post the main ninja class,?? )

PS - the new url shows in my browser but nothing happens !!

Nov 1 '09 #1
3 1557
5,058 Expert 4TB

The links that you print for the URLs in the "Links found" section are missing the "doit=yes" GET parameter.
Nov 1 '09 #2
290 100+
I added that in and it works now :)
Nov 2 '09 #3
6,050 Expert 4TB
Great catch. I looked at this for, like, 20 minutes yesterday and couldn't figure it out ><
Nov 2 '09 #4

Post your reply

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

Similar topics

1 post views Thread by Jean-Marc Molina | last post: by
9 posts views Thread by Stephen Melia | last post: by
7 posts views Thread by Jamie | last post: by
reply views Thread by Jan Roland Eriksson | last post: by
2 posts views Thread by joeandtel | last post: by
11 posts views Thread by mosscliffe | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.