how to convert this text?
Posted: Tue Aug 29, 2006 4:26 pm
Ok I have a script I need to make it convert this:
into something like this:
I have no idea what its called or how to do it in my script any help appreciated, thanks
Code: Select all
$bbody .= <<< HTML
</form><CENTER><a href="http://www.mycrib.net/?pageid=mycrib.member.addfriend&f=70092"><img src="http://mycrib.net/image-uploader/image_group76/0/2/144_th_Picture-163myspace.jpg" border="0"></a><BR>
<form method="LINK" action="http://www.mycribtrain.com/addme.php">
<input value='Click to Add me' type="submit" style="color:0270CA;font-weight:bold;font-size:20px;height:50px;width:450px;"></form>
<BR>
<form method="LINK" action="http://www.mycribtrain.com/bulletins/w4w2.php">
<input value='W4W...Do me please!' name="submit4" type="submit" style="color:0270CA;font-weight:bold;font-size:20px;height:50px;width:450px;"></form>
<BR>
<form method="LINK" action="http://www.myspace.com/jasondavis386">
<input value='View me on Myspace' name="submit5" type="submit" style="color:0270CA;font-weight:bold;font-size:20px;height:50px;width:450px;"></form>
<BR>
<form method="LINK" action="http://www.mycribtrain.com/bulletins/topfriend.php">
<input value='Click to Add me to your Top Friends list' name="submit7" type="submit" style="color:0270CA;font-weight:bold;font-size:20px;height:50px;width:450px;"></form>
<BR>
</center>
<form name="form1" method="post" action="/index.php?pageid=mycrib.bulletin">
HTML;into something like this:
Code: Select all
%3C%2Fform%3E%3CCENTER%3E%3Ca+href%3D%22http%3A%2F%2Fwww.mycrib.net%2F%3Fpageid%3Dmycrib.member.addfriend%26f%3D70092%22%3E%3Cimg+src%3D%22http%3A%2F%2Fmycrib.net%2Fimage-uploader%2Fimage_group76%2F0%2F2%2F144_th_Picture-163myspace.jpg%22+border%3D%220%22%3E%3C%2Fa%3E%3CBR%3E%0D%0A%3Cform+method%3D%22LINK%22+action%3D%22http%3A%2F%2Fwww.mycribtrain.com%2Faddme.php%22%3E%0D%0A%3Cinput+value%3D%27Click+to+Add+me%27+type%3D%22submit%22+style%3D%22color%3A0270CA%3Bfont-weight%3Abold%3Bfont-size%3A20px%3Bheight%3A50px%3Bwidth%3A450px%3B%22%3E%3C%2Fform%3E%0D%0A%3CBR%3E%0D%0A%3Cform+method%3D%22LINK%22+action%3D%22http%3A%2F%2Fwww.mycribtrain.com%2Fbulletins%2Fw4w2.php%22%3E%0D%0A%3Cinput+value%3D%27W4W...Do+me+please%21%27+name%3D%22submit4%22+type%3D%22submit%22+style%3D%22color%3A0270CA%3Bfont-weight%3Abold%3Bfont-size%3A20px%3Bheight%3A50px%3Bwidth%3A450px%3B%22%3E%3C%2Fform%3E%0D%0A%3CBR%3E%0D%0A%0D%0A%3Cform+method%3D%22LINK%22+action%3D%22http%3A%2F%2Fwww.mycribtrain.com%2Fbulletins%2Ftopfriend.php%22%3E%0D%0A%3Cinput+value%3D%27Click+to+Add+me+to+your+Top+Friends+list%27+name%3D%22submit7%22+type%3D%22submit%22+style%3D%22color%3A0270CA%3Bfont-weight%3Abold%3Bfont-size%3A20px%3Bheight%3A50px%3Bwidth%3A450px%3B%22%3E%3C%2Fform%3E%0D%0A%3CBR%3E%0D%0A%3C%2Fcenter%3E%0D%0A%3Cform+name%3D%22form1%22+method%3D%22post%22+action%3D%22%2Findex.php%3Fpageid%3Dmycrib.bulletin%22%3EI have no idea what its called or how to do it in my script any help appreciated, thanks