|  | Posted by zircher on 06/25/07 16:51 
I'm working on a little dice server e-mail utility for my gamingneeds.
 
 The problem is that the content string that I send to formmail.php is
 not the content string that gets e-mailed to me.
 
 For example, the javascript generates...
 
 Roll #1: 2d10 [10,2] = 12
 Roll #2: 2d10 [3,7] = 10
 Roll #3: 2d10 [9,6] = 15
 Roll #4: 2d10 [9,5] = 14
 Roll #5: 2d10 [7,6] = 13
 Roll #6: 2d10 [1,6] = 7
 Roll #7: 2d10 [6,8] = 14
 Roll #8: 2d10 [2,6] = 8
 Roll #9: 2d10 [10,7] = 17
 Roll #10: 2d10 [5,1] = 6
 
 But the e-mail that I get has truncated data...
 
 Roll #1: 2d10 [10,2] =2
 Roll #2: 2d10 [3,7] =0
 Roll #3: 2d10 [9,6] =5
 Roll #4: 2d10 [9,5] =4
 Roll #5: 2d10 [7,6] =3
 Roll #6: 2d10 [1,6] =
 Roll #7: 2d10 [6,8] =4
 Roll #8: 2d10 [2,6] =
 Roll #9: 2d10 [10,7] =7
 Roll #10: 2d10 [5,1] =
 
 The dice server page uses to work properly.  My guess is that my ISP
 has done something to PHP on the server.  I know that since I had to
 change the formmail.php script to use $_POST.  (Disabling global
 registers)  Was there a version change in PHP that would cause it to
 incorrectly parse that text?  Perhaps an HTML conversion that's
 getting in the way when $_POST is used versus global variables?
 
 Thoughts?
 --
 TAZ
 [Back to original message] |