I am using the following statement:
[php]
if ($url == “”) {
echo “No URL”;
} else {
echo “show an actual link here.”;
}
[/php]
Now when leaving out the URL, it does what its suppose to do “No URL” . But when actually entering in a URL, it is still showing as “No URL” instead of adding the URL to the a href tag and linking URL to the URL that was entered.
What am I not doing correctly for it to show a URL when one was actually entered ?
Am I messing it up at the beginning there with if ($url == “”) { or am I missing something else?
Any help would be appreciated.
(PS: I had to remove the else statement from the script above there, because it thinks I was trying to add a link, and I wasnt and gave me the following message:
[We’re sorry, but you need > 10 posts in order to post links. However, please feel free to include your PHP/HTML/CSS/Javascript code in your post, if you think this will help to describe your problem. ] )
I wasnt posting an actual link, just the script.