satre Posted April 9, 2010 Share Posted April 9, 2010 Here's a toughy. Can't seem to find it. I'm trying to simply put a question mark at the end of a question I have in the body of an email generated from a mailto: link. Here's the code: $bodyheader = "Dear $coordinator, could you please forward to Mr. $director? Thanks!%0d ------------------------------------------------------------%0d %0d"; echo "<a href='mailto:$addressee&from=$myemail&subject=subject%20is%20$subject&body= $bodyheader Dear Mr. $director,%0d %0d So, works great except when there is a question mark (as above) in $bodyheader, it won't echo anything past that. If I put in a period (.) all is AOK. I had to use the "%0d" to make a carriage return, anybody know what to put in for a question mark? I already tried the html escape "?" and that does not work. Thanks for your help! -Satre Link to comment https://forums.phpfreaks.com/topic/198068-how-to-get-a-in-the-body-of-a-mailto-statement/ Share on other sites More sharing options...
satre Posted April 9, 2010 Author Share Posted April 9, 2010 Arrgh! I just found it! Sorry for the trouble. You use this: %3F Does anyone know a reference where to find all the character codes for mailto links? Link to comment https://forums.phpfreaks.com/topic/198068-how-to-get-a-in-the-body-of-a-mailto-statement/#findComment-1039265 Share on other sites More sharing options...
phporcaffeine Posted April 9, 2010 Share Posted April 9, 2010 $bodyheader = "Dear $coordinator, could you please forward to Mr. $director\? Thanks!%0d ------------------------------------------------------------%0d %0d"; Link to comment https://forums.phpfreaks.com/topic/198068-how-to-get-a-in-the-body-of-a-mailto-statement/#findComment-1039267 Share on other sites More sharing options...
andrewgauger Posted April 9, 2010 Share Posted April 9, 2010 Space %20 # %23 $ %24 % %25 & %26 @ %40 ' %60 / %2F : %3A ; %3B < %3C = %3D > %3E ? %3F [ %5B \ %5C ] %5D ^ %5E { %7B | %7C } %7D ~ %7E Link to comment https://forums.phpfreaks.com/topic/198068-how-to-get-a-in-the-body-of-a-mailto-statement/#findComment-1039268 Share on other sites More sharing options...
oni-kun Posted April 9, 2010 Share Posted April 9, 2010 $questionmark = '%' . ord("?"); Link to comment https://forums.phpfreaks.com/topic/198068-how-to-get-a-in-the-body-of-a-mailto-statement/#findComment-1039272 Share on other sites More sharing options...
teamatomic Posted April 9, 2010 Share Posted April 9, 2010 ascii characters http://www.asciitable.com/ HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/198068-how-to-get-a-in-the-body-of-a-mailto-statement/#findComment-1039275 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.