Well...by the date i´m think you´ve already fix the bug.
I gave the same answer in this post:
I just don´t have sure if php i´ll get already the variables(It´s from an example a have), because i have i problem, and i think you can help me:
I think it´s because of the header. I´m making a simple wap portal, and in my contact page i call contact php, that will send the mail and notification.
The error is: the file contact.php is of type: text/html.
Whatever, can you tell me how can i realy use and embeded php in a wml file!?