Forum Moderators: coopster

Message Too Old, No Replies

Hyperlink for email address

Take LDAP Search Result and hyoerlink email address

         

EdRoche

1:01 pm on Jun 16, 2008 (gmt 0)

10+ Year Member



Good Morning All

I have been working a week or 2 to get a PHP script to search our AD to list employee info for a company directory. I now have that working but whenever I add the hyperlink code to the results section the result disappears and gives my no email address. I search and 2 articles that set it up the way I did but still isn't giving me anything. Here is the section of the script that I am working on:

for ($i=0; $i<$entries["count"]; $i++) {
echo "<p>Name: ".$entries[$i]["displayname"][0]."<br />";
echo "Phone: ".$entries[$i]["telephonenumber"][0]."<br />";
echo "Email: <a href=mailto:".$entries[$i]["mail"][0]."></a></p>";

If anyone can share their thoughts that would be great!

Thanks
Ed

supermanjnk

3:05 pm on Jun 16, 2008 (gmt 0)

10+ Year Member



echo "Email: <a href=mailto:".$entries[$i]["mail"][0]."></a></p>";

You don't have anything between your Anchor tags

echo "Email: <a href=mailto:".$entries[$i]["mail"][0].">I NEED SOMETHING HERE</a></p>";

EdRoche

5:34 pm on Jun 16, 2008 (gmt 0)

10+ Year Member



HUH DUHHHHHHH......what I a moron I am!

Thanks!