I came across this rather interesting problem/behavior.
For the sake of argument, lets say the local URL is
Displaying content from a MySQL table, one of the field holds an URL entry.
If the entry reads
when shown on screen using following code:
PHP appears to add (as a prefix) the local URL thus attempting to open URL as
Why is this?
I edited the field and changed it to
and it does what's expected ... no prefix is added to the URL.
Regards,
Jose Lerebours
KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours
For the sake of argument, lets say the local URL is
Displaying content from a MySQL table, one of the field holds an URL entry.
If the entry reads
when shown on screen using following code:
Code:
echo '
<td><a href="' . $row["MemberURL"] . '" target="_new">' . $row["MemberURL"] . '</a></td>';
PHP appears to add (as a prefix) the local URL thus attempting to open URL as
Why is this?
I edited the field and changed it to
and it does what's expected ... no prefix is added to the URL.
Regards,
Jose Lerebours
KNOWLEDGE: Something you can give away endlessly and gain more of it in the process! - Jose Lerebours