473,396 Members | 1,989 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

hyperlink with echo'ed field

The following outputs a filed for the users website, I'm looking for a way
to hyperlink the output so if someone clicks on the link, it will open their
site in new window. Also if the text that is hyperlinked is their actual url
that would be awesome. Thanks in advance. I have been looking all night for
examples and have not nothing that's close to this.
<? echo "$web"; ?>
Jul 16 '05 #1
4 4939
I tried that, and a few other variations, and can't get it to work.

It puts the words of web and a hyperlink, but to a local area on the server
its running, not the url that is stored in the field.

"Ian.H [dS]" <ia*@WINDOZEdigiserv.net> wrote in message
news:qf********************************@4ax.com...

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on Fri, 08 Aug 2003 07:26:38 GMT, "entoone"
<en*****@pacbell.net> amazingly managed to produce the following with
their Etch-A-Sketch:
The following outputs a filed for the users website, I'm looking
for a way to hyperlink the output so if someone clicks on the link,
it will open their site in new window. Also if the text that is
hyperlinked is their actual url that would be awesome. Thanks in
advance. I have been looking all night for examples and have not
nothing that's close to this.
<? echo "$web"; ?>

Something like:
echo '<a href="' . $web . '">' . $web . '</a>';
?

Regards,

Ian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPzOeVmfqtj251CDhEQJbtwCg0gljIWoNpOFJ91iMlQJM79 iAsNcAoOg+
BngxuX7Dq4Z7KAUA1ObJX+J+
=vsY6
-----END PGP SIGNATURE-----

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.

Jul 16 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on Fri, 08 Aug 2003 18:52:43 GMT, "entoone"
<en*****@pacbell.net> amazingly managed to produce the following with
their Etch-A-Sketch:
I tried that, and a few other variations, and can't get it to work.
It puts the words of web and a hyperlink, but to a local area on
the server its running, not the url that is stored in the field.

Post your code here.. it'll make life easier for anyone willing to
help to actually help you, as I (and others) could hazard guesses at
your problem, but as shown already, a guess isn't always a solution
=)

I suspect something very simple is amiss somewhere (possibly a mixup
of " with ') but seeing your code should clarify and help us help you
=)

Regards,

Ian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPzQCGWfqtj251CDhEQI0jgCfY2UnJoS5glsUHXQuH1t1a/Hc2eIAoNKX
L1hxTfG8DwXrjKgYzTF/16Ba
=K0Ig
-----END PGP SIGNATURE-----

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
Jul 16 '05 #3
Thanks again!
This is from the top of the code

where the result is defined

$web=mysql_result($result,$i,"web");

This is the line that prints the result. Presenlty it only prints the url,
but I would like to hyperlink it the actualy url of the site.
<td width="278" height="12" bgcolor="#FFFFFF"><font face="Verdana"
size="2">&nbsp;<? echo "$web"; ?></font></td>
----

"Ian.H [dS]" <ia*@WINDOZEdigiserv.net> wrote in message
news:sd********************************@4ax.com...
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on Fri, 08 Aug 2003 18:52:43 GMT, "entoone"
<en*****@pacbell.net> amazingly managed to produce the following with
their Etch-A-Sketch:
I tried that, and a few other variations, and can't get it to work.
It puts the words of web and a hyperlink, but to a local area on
the server its running, not the url that is stored in the field.

Post your code here.. it'll make life easier for anyone willing to
help to actually help you, as I (and others) could hazard guesses at
your problem, but as shown already, a guess isn't always a solution
=)

I suspect something very simple is amiss somewhere (possibly a mixup
of " with ') but seeing your code should clarify and help us help you
=)

Regards,

Ian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPzQCGWfqtj251CDhEQI0jgCfY2UnJoS5glsUHXQuH1t1a/Hc2eIAoNKX
L1hxTfG8DwXrjKgYzTF/16Ba
=K0Ig
-----END PGP SIGNATURE-----

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.

Jul 16 '05 #4
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Whilst lounging around on Sat, 09 Aug 2003 16:01:21 GMT, "entoone"
<en*****@pacbell.net> amazingly managed to produce the following with
their Etch-A-Sketch:
Thanks again!
This is from the top of the code

where the result is defined

$web=mysql_result($result,$i,"web");

This is the line that prints the result. Presenlty it only prints
the url, but I would like to hyperlink it the actualy url of the
site.

By this, would I be right in assuming something like 'www.foo.bar' is
being stored as the URL? If I am...



<td width="278" height="12" bgcolor="#FFFFFF"><font
face="Verdana" size="2">&nbsp;<? echo "$web"; ?></font></td>


<a href="http://<?php echo $web;?>"><?php echo $web;?></a>
should turn that into a usable link =)

If I'm wrong, can you post an example of that's stored in the 'web'
field in your DB?

Regards,

Ian

-----BEGIN PGP SIGNATURE-----
Version: PGP 8.0

iQA/AwUBPzUboWfqtj251CDhEQITXQCg+n9en8TtIltuCtLnVmSXEy HUgYwAoIqQ
q8YVXz8sMEgsOIipptkZ/5UZ
=lnYq
-----END PGP SIGNATURE-----

--
Ian.H [Design & Development]
digiServ Network - Web solutions
www.digiserv.net | irc.digiserv.net | forum.digiserv.net
Programming, Web design, development & hosting.
Jul 16 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ray | last post by:
I recently upgraded from Access 97 to Access 2003 and just enter some new data into table via an input form. The form has one hyperlink field to contain a file path. In Access 2003, it appears...
4
by: Greg Strong | last post by:
Hello All, Ok I've read it is not necessarily a good ideal to create a hyperlink field in a database, but I've tried. I've also read that a hyperlink field is a memo field with attributes of...
0
by: jdw | last post by:
I have seen sample code to add mailto feature in datagrid hyperlink field using the RowDataBound event. I did it a bit different. e-amil address are stored in a database. name@domain.com. I...
9
by: Morris Neuman | last post by:
Im working with VS 2005 and trying to use a Hyperlink field in a datagrid to play a wave file that is not located in the website folders but is in a plain folder on the same machine, windows 2003...
3
by: shapper | last post by:
Hello, In my GridView I have a HyperLink Field where I set the DataNavigateUrlFormaString MyHyperLinkField.DataNavigateUrlFormatString = "~\RSS.ashx?Channel={0}&Culture=" &...
1
by: Simon | last post by:
Dear reader, How to print an e-mail address if the address is stored in a datatype Hyperlink field. If I use the Hyperlink field in a report than by print the field shows more as only the...
1
by: dpark29 | last post by:
Access 2000 - If a textbox control is bound to a hyperlink field in an Access database table, the textbox appears formatted as hyperlink and when the user right-clicks the field, the Hyperlink option...
1
by: John | last post by:
Hi I have a grid view bound to an SqlDataSource. One of the fields in grid view is a hyperlink field. How can I set the hyperlink field's navigationurl to the value of a field coming form the...
0
by: Simon | last post by:
Dear reader, How to export a hyperlink field from Access to Excel, so it is also working in Excel. In Excel you have for the Hyperlink to parts: a.. Text To Display
4
by: soulerrant | last post by:
Access 2003 SP2, Win XP I have a form that has Default View = Datasheet; allow Form View = No. Form opens in Datasheet view. The form has a text field with 'Is Hyperlink' set to Yes. When the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.