I have written a php-script, which is called by mobile phones. It tries to recognize the mobile using UserAgent.
In case this is not working, I send a wml-string with mobile names in link form as following:
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<card id="Main" title="title">
Please select a name:<br/>
<anchor title="lnk1">Siemens M50
<anchor title="lnk2">Siemens SL45i
Now my problem:
if I paste this text in a new script.wml and call it from through a mobile, everything's works.
But if this script (string) is generated from my php-script and send to the mobile, it only works on few mobiles. Never on a Nokia.
Does anybody know what's wrong?
I also tried with header-setting before sending (doesnt work):
header("Content-Type: text/html; text/vnd.wap.wml"
Hi again. I think I misunderstood your question. How is the script generated from your php script? Does your php script not sit within the wml page? It may be easier if you show your php code and how it relates to the wml.