Hello,
I am having what i am sure is a simple issue for most people. I am trying to do two actions when a href link is clicked on my site.
First action is that it opens up the specified url in a new window.
Second Action is that it post's a data to search string.
The issue i am currently having is that all my links are stored in a mysql DB and called dynamically onto the page using ajax(prototype).
This is part of my backend scirpt to get the required information from the DB and display it.
echo ("<P><DT><B>$titlename</B><BR>\n");
while ($row = mysql_fetch_array($retid)) {
$siteurl = $row["siteurl"];
$sitename = $row["sitename"];
echo ("<DD><A HREF='$siteurl'target='_blank' >$sitename</A></DD>\n");
}
echo ("</DT></P>");
}
I know it is very simple but it works perfectly.
Now what would i have to do so that when a user click's any given link that is displayed
it will post to a search string with the $sitename variable put in at the end.
It would look something like this
http://www.example.com/SearchMode=$sitename
This would be done in the backend and the user would never see it.
Any help would be greatly appretiated.
Thanks Everyone.