Jump to content


Photo

can I create a personalized image greeting in html using php?


  • Please log in to reply
3 replies to this topic

#1 sob1977

sob1977
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 02 June 2006 - 05:27 PM

I received an html email today with a stock photo of a cab door. On the cab door was a personalized greeting with my bosses name. This email was clearly sent using listserv of some sort. Can I write a PHP function that will achieve this?

I look forward to hearing from all!

Sara

#2 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 02 June 2006 - 05:32 PM

Well, you can modify an image using PHP's GD functions
[a href=\"http://www.php.net/gd\" target=\"_blank\"]http://www.php.net/gd[/a]
~ D Kuang

#3 sob1977

sob1977
  • Members
  • Pip
  • Newbie
  • 2 posts

Posted 02 June 2006 - 05:44 PM

[!--quoteo(post=379409:date=Jun 2 2006, 01:32 PM:name=poirot)--][div class=\'quotetop\']QUOTE(poirot @ Jun 2 2006, 01:32 PM) View Post[/div][div class=\'quotemain\'][!--quotec--]
Well, you can modify an image using PHP's GD functions
[a href=\"http://www.php.net/gd\" target=\"_blank\"]http://www.php.net/gd[/a]
[/quote]

OK, so I should be able to send one dynamic e-mail to let's say 300 recipiants and the php code will be able to read the resipiants first name, and then display an image that reads "hello mike," or "hello pat,", etc.?

#4 poirot

poirot
  • Members
  • PipPipPip
  • Advanced Member
  • 646 posts
  • LocationAustin, TX

Posted 02 June 2006 - 05:50 PM

Well, for that you can embed a variable into the link, like:
[a href=\"http://www.example.com/card.php?recipient=mike\" target=\"_blank\"]http://www.example.com/card.php?recipient=mike[/a]

Then use something like:
$text = 'Hello, ' . $_GET['recipient'];
~ D Kuang




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users