PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > alt.comp.lang.php > inject character at the end of a very long string in an HTML email
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
inject character at the end of a very long string in an HTML email

Réponse
 
LinkBack Outils de la discussion
Vieux 05/08/2007, 05h15   #1 (permalink)
Kevin Raleigh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut inject character at the end of a very long string in an HTML email

I have one very long line of code that ends abruptly with a " ! "
exclamation point.
If I add or subtract code the exclamation point moves accordingly.
"This character is injected", and it is not part of my code
Here is the code. Look to the very last line of the code:

<html><head></head><body bgcolor='#FFFFFF' LINK='#FFFFFF' VLINK='#FFFFFF'
ALINK='#FFFFFF'><table width='620' border='0' align='center' cellpadding='0'
cellspacing='0' bgcolor='#092F5E'><tr><td height='115' colspan='3'
valign='top'><img alt='banner' src='cid:my-attach1'/></td></tr><tr><td
valign='top' width='18%' height='150'><p>&nbsp;</p><div align='center'
style='color:#FFFFFF; font-family:Verdana; line-height: 1.3em; font-size:
11px;'><p>WEDNESDAYS<br />Keys Chapel<br /><strong>7:15PM<//strong><br
/><em>(before service)</em> <br />The Connection<br />6:45PM<br />In Room
123 <br />Next Door</p><p>SUNDAYS<br />&quot;On Course&quot;<br />Crystal
Room<br /><strong>9:15AM</strong></p><p><a
href='http://www.bethel.org/WNLBulletin.pdf'>Events<br />Bulletin<br
/></a></p><p>PASTOR<br />Art Gorman</p><p>PHONE<br />(408) 246-6790<br
/>x247</p><br/><br/><br/><br/><br/><br/></div></td><td width='62%'
valign='top' bgcolor='#FFFFFF'><table width='100%' align='center'
cellpadding='20'><tr><td width='81%' align='left'
valign='top'><p>&nbsp;</p>Make my joy complete by being of the same mind,
maintaining the same love, united in spirit, intent on one purpose.<div
align='right'><strong>Philippians 2:2</strong></div> </td><td width='19%'
align='left' valign='top'><img alt='PA and Wife' src='cid:my-attach'/>
</td></tr><tr><td colspan='2' align='left' valign='top'><p><strong>Hi: Jack
</strong></p><p>tsst</p></td></tr><tr><td colspan='2' align='left'
valign='top'>If you wish to be removed from 1Purpose mailing list please <a
href='mailto:1padmin@1purpose-bethel.org' style='color:blue;'>click
here</a>! Place remove me in the subject list. Then place your name and
email address in the body of the document<br/><div align='right'>Thank
You!</div></td></tr></table></td><td valign='top' width='20%'><p><span
style=A:link {color:#FFFFFF; font-size: 9px;
font-family:Verdana;}'><br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a
href='http://www.1purpose-bethel.org'>Home</a><br/>&nbsp;&nbsp;&nbsp;&nbsp;&
nbsp;&nbsp;<a href='http://w!

NOTICE that the last character is an " ! "

Has anyone ever had this problem before?
Any suggestions on how to break the html code into multiple lines of code?

insight appreciated
thank you
Kevin




  Réponse avec citation
Vieux 05/08/2007, 08h02   #2 (permalink)
Kevin Raleigh
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: inject character at the end of a very long string in an HTML email

Please excuse this post; after rereading it I find
that it is very confusing and hard to understand.

I am reposting and dumping this one.

my sincerest apoligises
Kevin


  Réponse avec citation
Vieux 12/08/2007, 16h50   #3 (permalink)
Julien Plée
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: inject character at the end of a very long string in an HTMLemail

Le Sat, 04 Aug 2007 21:15:01 -0700, Kevin Raleigh a écritÂ:

> I have one very long line of code that ends abruptly with a " ! "
> exclamation point.
> If I add or subtract code the exclamation point moves accordingly. "This
> character is injected", and it is not part of my code Here is the code.
> Look to the very last line of the code:
>

(SNIP)
>
> NOTICE that the last character is an " ! "
>
> Has anyone ever had this problem before? Any suggestions on how to break
> the html code into multiple lines of code?
>
> insight appreciated
> thank you
> Kevin


Hello Kevin,

Easy to do: first you need to now WHERE you CAN cut the string (so that
it won't disturb the display). Then, you have to new WHERE you HAVE TO
cut the string (so that you're sure you won't cut it to many times nor to
little times). Then, you have to now HOW you can cut the string
(actually, this will be by inserting a new line ("\n") or carriage return
+ new line ("\r\n") or maybe still the old MacOS way: a carriage return
("\r")). Then, you have to find how to merge all those rules together and
try your algorithm.

Like I told, easy, but I'm too lazy to code it )


Julien
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 01h47.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,08956 seconds with 11 queries