Hey there
This is my first post here, i hope you guys can help me out
I have a business directory script, which works great for regular listings except for affiliates since it will display the entire url link (
http://affiliate.if.com/jh23948293489.id=4) and i cant find the way to use tags.
Im using PHP/MySQL
Of course, there is a field where you enter the url, however... for some reason the tags seem not to be accepted
if i enter:
<a href="http://www.whateversitenotexisten.com/">WIll i ever learn PHP?</a>
and then save it, it will show like this..
<a>Will i ever learn PHP?</a>
NOTE: YES, i know those are HTML tags, but i posted that so you have an idea of how the script/database is reading the info
So, i can not post any <a href></a> tags, because they will be visible, and even tho the outcome is a link, i will take you no where; 404 Code
I did a code search on my files to see where the www field? was listed to see if there was something wrong, but i wouldnt know if is wrong or not since i dont know php, hopefully you guys will be able to help me on this
my users.php file (only two lines with www in it)
echo "<tr><td bgColor=$def_form_back_color align=right>$def_webpage: <input type=text name=www size=50 value=\"$f[www]\" maxlength=100></td></tr>";
and
echo "<tr><td align=right valign=middle width=\"30%\" bgcolor=\"$def_form_back_color\">$def_webpage:</td><td align=left valign=middle width=\"70%\" bgcolor=\"$def_form_back_color\"> <a href=\"$f[www]\" target=\"_blank\">$f[www]</a></td></tr>";
reg.php
$def_webpage: $www\n
<?php echo "$def_webpage"; ?>:
<input type="text" name="www" value="http://" size="50" maxlength="100">
print.php
if ( ( !empty ( $f[www] ) ) and ( $f[www] != "http://" ) )
echo "<tr>
<td align=\"right\" valign=\"middle\" width=\"35%\" bgcolor=\"$def_form_back_color\">
$def_webpage:
</td>
<td align=\"left\" valign=\"middle\" width=\"65%\" bgcolor=\"$def_form_back_color\">
<a href=\"out.php?ID=$f[selector]\" target=\"_blank\">$f[www]
</a>
</td>
index.php
if ( ( !empty ( $f[www] ) ) and ( $f[www] != "http://" ) )
{
echo "<tr>
<td align=\"right\" valign=\"middle\" width=\"35%\" bgcolor=\"$def_form_back_color\">
$def_webpage:
</td>
<td align=\"left\" valign=\"middle\" width=\"65%\" bgcolor=\"$def_form_back_color\">
";
if ($def_rewrite == "YES")
echo "<a href=\"$def_mainlocation/out-$f[selector].html\" target=\"_blank\">";
else
echo "<a href=\"out.php?ID=$f[selector]\" target=\"_blank\">";
echo "$f[www]
</a>
im not sure if that line of code would help on any way
I just dont know what to do, im not sure if is something on MySQL, PHP or what... i would think there is a way to display the tags i need, but i have no knowledge about php
I hope the information i posted is enough for you to see whats wrong, if not, please let me know what you need to know, i really need to have this figured out.
thanks a lot