Embed Link into Newsletter...

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

NYColt
New php-forum User
New php-forum User
Posts: 34
Joined: Fri Feb 14, 2003 2:33 am
Location: New York

Embed Link into Newsletter...

Postby NYColt » Thu Dec 04, 2003 6:56 am

Hello Again All,

I have a php mailing List script that I want to embed an unsubscribe link into.

The problem is that the link is not showing up in the news letter but the code is.

I thought it may have been because it needed stripslashes so I did that.
Here is the code:
<td><textarea name="message" cols="40" rows="8" id="textarea" class="box"><?php
$str = "<a href=\"http://www.mysite.com\">Unsubscribe here</a>";
echo stripslashes($str);
?>
</textarea></td>

But this is the result in the newsletter:

test 3<a href=\"http://www.mysite.com\">Unsubscribe here</a>

Any insight as to how I can correct this would be great!

Thanks
NYColt

liquedus
php-forum Active User
php-forum Active User
Posts: 266
Joined: Tue Apr 08, 2003 5:18 am
Location: Ottawa, Canada
Contact:

Postby liquedus » Thu Dec 04, 2003 7:20 am

you dont need to use the stripslashes function :wink:

NYColt
New php-forum User
New php-forum User
Posts: 34
Joined: Fri Feb 14, 2003 2:33 am
Location: New York

Postby NYColt » Thu Dec 04, 2003 7:27 am

Ok, put how do I get the link to appear and not the code?

liquedus wrote:you dont need to use the stripslashes function :wink:

User avatar
ruturajv
php-forum Super User
php-forum Super User
Posts: 1280
Joined: Sat Mar 22, 2003 9:42 am
Location: Mumbai, India
Contact:

textarea

Postby ruturajv » Thu Dec 04, 2003 8:56 pm

please try to echo the string outside the textarea
that should do the trick! :o)


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 3 guests