Hi folks, what I would like to do is to store the name of a link, such as
link1.php in a field, lets say the field is called Favoritelinks, in a
database as a bit of text. Then, on a logged in page, pull the value from
the field and put in right in the <a href><a> tag so that the link now
points to a file, and is dynamic. And, depending on the username and
password, the value taken from Favoritelinks changes.
What Im after is to provide a link from a field (in this case
Favoritelinks). The entry in the field is simple text such as "link1.php".
Then, in a logged in file, use this text to create a link. Now, as to which
row is accessed to provide the actual text from the Favoritelinks field,
that depends on matching a username and password from two other fields in
the same table.
So, for example username bill, password test1 will have the entry link1.php
in his Favoritelinks field. username frank, password test2 will have the
entry link2.php in his Favoritelinks field. I would like to have the logged
in screen change so that the hypertext link will point to link1.php in the
link for bill if he logs in and for it to then be link2.php if frank logs
in.
So if bill logs in the html will show <a href: link1.php>Click here<a>
and if frank logs in, it will show <a href: link2.php>Click here<a>