473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

How can I get this link to work ?

290 100+
Hello,

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
  1. echo "<TR><TD VALIGN=TOP COLSPAN=2 BGCOLOR=#000000><B><CENTER>
  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.     }
  8.  
  9. for ($i = 0 ; $i < count($ninja->link_array) ; $i++)
  10.     {
  11.     echo "<TR><TD WIDTH=100 VALIGN=TOP BGCOLOR=#DDDDDD>
  12. [<A HREF=\"" . $ninja->link_array[$i] . "\" TARGET=_blank>open</A>]&nbsp;&nbsp;&nbsp;Link " . ($i + 1) . ": </TD>
  13. <TD VALIGN=TOP BGCOLOR=#DDDDDD>
  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 !!


Thanks
Nov 1 '09 #1
3 1696
Atli
5,058 Expert 4TB
Hey.

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

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

Similar topics

1
by: Jean-Marc Molina | last post by:
Hello, I'm trying to generate a RSS newsfeed using the DOM XML functions, but you already know that if you read my previous post . I'm able to create rss, channel and title elements but not a...
9
by: Dom | last post by:
I have a frameset with a left right columns, called 'index' and 'content'. The left column of the frameset ('index') loads an index.htm file which have these hrefs (summarized the code a bit)...
6
by: Todd Peterson | last post by:
I'm encountering some wierd behavior with a <link> tag over an HTTPS connection, vs. an HTTP connection... In an ASP/HTML page on my website, I've add a <link rel="shortcut icon"...> in order to...
2
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/authoring-faq Posting-Frequency: twice a week (Mondays and Thursdays) Last-modified: August 28, 2002 Version: 1.15 URL: http://css.nu/faq/ciwas-aFAQ.html...
9
by: Stephen Melia | last post by:
Hello, I've just done a redesign of website, and it's gone terribly wrong for Internet Explorer 6. I have a two column layout, and for some reason links in the right hand column cannot be...
7
by: Jamie | last post by:
Hi everyone, Meyer on p. 91 of "Eric Meyer on CSS" says that link styles must be added in LVHA order (link, visited, hover, active) or link styles will stop working. Why is that? Is there an...
0
by: Jan Roland Eriksson | last post by:
Archive-name: www/stylesheets/authoring-faq Posting-Frequency: twice a week (Mondays and Thursdays) Last-modified: April 10, 2003 Version: 1.16 URL: http://css.nu/faq/ciwas-aFAQ.html Maintainer:...
2
by: joeandtel | last post by:
Is there a way to check if a link has been visited using JavaScript? I have a table of data and the front of each row has a link to another page. Of course the browser knows if a link has been...
11
by: mosscliffe | last post by:
I am trying to create a link to a file, which I can then use in an HTML page. The system is Linux on a hosted web service, running python 2.3. Other than that I have no knowledge of the system....
6
by: liketofindoutwhy | last post by:
There is a link that encloses a span (or a div), but the link won't work in IE 7 (clicking on video image works, but not on the play button), while it works well in Firefox 2 and 3, and Safari 3....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.