473,408 Members | 2,888 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,408 software developers and data experts.

Help needed formatted submit results - Changing data

Hi all, another area I could use some help with is changing submitted data
based on the data conditions ... I will elaborate. I have a form textarea
where a user can type in some text. This text is sent to a perl script that
eventually will send that data to someone by email in HTML format. Here is
where I need some help.

If a user was to type in a web address www.mysite.com etc, in the text box,
I would like my script to detect web addressed and add the necessary HTML
tags before and after ... this is needed because unlike MIME email, HTML
email must have the A HREF tags in order for the link to become hyperlinked.
So here is what I need ... a code example that will detect a web address in
the submitted data and add the

<a href="http://www.mysite.com">www.mysite.com"</a>

tags before and after the found web address. I see Perl Forum scripts do
this all the time but i have no idea how it's done. If you are able to
provide an example that would be wonderful. Thankx!

RV
Jul 19 '05 #1
1 1791

Robert V <du****@hotmail.com> wrote in message
news:45***********************@news1.calgary.shaw. ca...
Hi all, another area I could use some help with is changing submitted data
based on the data conditions ... I will elaborate. I have a form textarea
where a user can type in some text. This text is sent to a perl script that eventually will send that data to someone by email in HTML format. Here is
where I need some help.

If a user was to type in a web address www.mysite.com etc, in the text box, I would like my script to detect web addressed and add the necessary HTML
tags before and after ... this is needed because unlike MIME email, HTML
email must have the A HREF tags in order for the link to become hyperlinked. So here is what I need ... a code example that will detect a web address in the submitted data and add the
try something like "<a href=\"http://".$sitename.\">".$sitename,"\"</a>"
thant should do it! <a href="http://www.mysite.com">www.mysite.com"</a>

tags before and after the found web address. I see Perl Forum scripts do
this all the time but i have no idea how it's done. If you are able to
provide an example that would be wonderful. Thankx!

RV

Jul 19 '05 #2

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

Similar topics

7
by: redneck_kiwi | last post by:
Need some opinions on how best to display in excess of 14K records based on users search criteria. Application Concept: ----------------------- User enters various search criteria (as many...
4
by: Sarah | last post by:
Hi all. I have a form, and several text and image links on it that should submit the form with different actions. I prepared a simple page with just the code that's not working. PROBLEM:...
2
by: Margaret Werdermann | last post by:
Hi all: I'm having a nasty time with a particularly difficult piece of code and was hoping someone might be able to help me. I have a FormMail form that originally worked perfectly. Then, I...
1
by: S. H. | last post by:
I am using a small function to return information from an Access database. Whether I use xml formatted text or otherwise, the results are returned to me in a formatted way. I'm new to C#, so I'm...
1
by: Henry Nelson | last post by:
Hi all I'm very new to dotNet and just trying to get my head around the right way to do the thing that I would normally do in asp. In asp I would loop through a recordset and output all the...
1
by: dasilva109 | last post by:
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday //ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include...
0
by: =?Utf-8?B?UGllcmNlQnJvc25hbg==?= | last post by:
I am using C#(Vs.Net 2003) The error I am getting is... System.Xml.XmlException: This is an unexpected token. The expected token is 'EndElement' I have come to understand that this error is...
4
by: Melissa | last post by:
I currently have VBA written to export query results into an Excel file. That file is then formatted using the code below. The problem I'm having is that it keeps throwing Error 91 (Object...
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
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.