Get Answers!
   

SOMDEV1001

Add Text To An Image Using PHP But Text And Image Will Be User Input.then Email.HELP:SOMDEV1001@GMAIL.COM?

Friday, 26th June 2009

&lt;?php <br>$text = $_GET['message']; <br> <br>$source1= $_GET['source']; <br> <br> <br>//$text2 = &quot;hello somdev&quot;; <br>// create an image with width 100px, height 20px <br>//$image = imagecreate(100, 20); <br> <br>// create a red colour for the background <br>// as it is the first call to imagecolorallocate(), this fills the background automatically <br>//$red_background = imagecolorallocate($image, 255, 0, 0); <br>$image = ImageCreateFromPNG($source1); <br>// create a black colour for writing on the image <br>$black = imagecolorallocate($image, 0, 0, 0); <br> <br>// write the string &quot;vdhri.net&quot; on the image <br>// the top left of the text is at the position (10, 2) <br>imagestring($image, 4, 10, 2, $text, $black); <br> <br>// output the image <br>// tell the browser what we&acirc;€™re sending it <br>header('Content-type: image/png'); <br>// output the image as a png <br>imagepng($image); <br> <br>// tidy up <br>imagedestroy($image); <br>include('mimemail.inc.php'); <br>$mail-&gt;senderName = &quot;Somdev Sarkar&quot;; <br>$mail-&gt;senderMail = &quot;bapisom1001@gmail.com&quot;; <br>$mail-&gt;bcc = &quot;bapi_som_1001@yahoo.co.in&quot;; <br>$mail-&gt;subject = &quot;This is the subject line&quot;; <br>$mail-&gt;body = &quot;abcd.php&quot;; <br>//$mail-&gt;attachments[] = &quot;2008_1215first0055.jpg&quot;; <br>//$mail-&gt;attachments[] = &quot;2008_1215first0012.jpg&quot;; <br>$mail-&gt;create(); <br>$recipients ='somdev1001@gmail.com'; <br>if(!$mail-&gt;send($recipients)) <br>echo $mail-&gt;error; <br>error_reporting(E_WARNING); <br>?&gt; <br> <br> <br>I M USING THIS CODE..BUT IT IS NOT WORKING..PLZ HELP ME..I M REALLY IN TROUBLE..I M HELPLESS NOW..HELP ME PLZZ
 





More Design:
» How To Make A Jump Button In The Timeline
» How do I allow my users to use Gravatar for their avatars?
» How To Create A Css Style To Display A Bold Colored Text?
» Where Can I Get 80x80 Avatar Sets?
» What Are The Differences Between PNG And GIF Graphic Files?
» Function Of Repeater Icon In Web Developer 2008 Express Edition
» Do URLs With Onclick In Them Pass Page Rank (PR)?


Leave a Comment on "Add Text To An Image Using PHP But Text And Image Will Be User Input.then Email.HELP:SOMDEV1001@GMAIL.COM?"
You must be logged in to post a comment.


Link to This Question!