|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Dynamic PHP with WML
So I'm trying to build a dynamic site with WML/PHP and I having difficulty getting the PHP to show up in the WAP browser. I built a simple file and all I get on my phone (Treo 650) is a blank page.
Here's the code: PHP Code:
I ran the code through w3schools validator and didn't receive any errors so my guess is that either the phone network (Sprint) WAP Gateway isn't working right OR the web server isn't recognizing the PHP--any ideas? Gene Last edited by jabba_29 : March 17th, 2006 at 08:55 PM. |
|
#2
|
|||
|
|||
|
I'm betting it's your first two lines being interpreted as PHP since <? ?>is a quick start php tag. Echo those through php instead of trying to plain text display them outside of php. I actually just started really getting into WML today but the below header is working under firefox's WML extention. I haven't tested it on a phone yet.
PHP Code:
I don't know much about header info so I can't say if the extra ones you're using are correct or not. Last edited by jabba_29 : March 17th, 2006 at 08:56 PM. |
|
#3
|
|||
|
|||
|
Yeah I tried that before posted here. It doesn't work on my phone--maybe it does on otheres...I'll keep banging away then...
|
|
#4
|
||||
|
||||
|
Welcome to Dev Shed
![]() Quote:
Try changing your page to something like: PHP Code:
Maybe it isn't recognizing the DTD previously(?) Since your device handles xhtml, why not write in that - it's a lot more versatile than WML.
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. __________________ Last edited by jabba_29 : March 17th, 2006 at 09:14 PM. |
|
#5
|
|||
|
|||
|
That should work. Next try and validate it here: http://validator.w3.org/
|
|
#6
|
|||
|
|||
|
Did you find an answer? If so could you post it as I have the same problem. The only way I can access a php file (saved without the headings) is through another file like the one below (saved as a .wml file)
Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">
<wml>
<card id="card1" title="customer">
<p>
Customer Details.<br/>
<anchor>
<go method="get" href="whateveryour fileis.php">
</go>
Submit Data
</anchor>
</p>
</card>
</wml>
|
|
#7
|
|||
|
|||
|
Try following code:
PHP Code:
It should work on your phone too. Most of the times the reason a WML page is not being rendered on the mobile device is that it is not in the standard form(Not Validated). I am currently working on YaSUS! [ http://yasus.info ] which is the WAP enabled Short URL service. I was having similar problem in the starting, but later after proper validation I got it to work. You may see YaSUS! in action by navigating to http://snip.ws via your WAP enabled device. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Dynamic PHP with WML |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|