|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
||||
|
||||
|
Hello friend
I want to pass ($wml) variable to php so how to do that ? I will be thankful for you.. Here is my 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="tutorial_tc" title="WML Tutorial"> <p>You have selected: $Make</p><br/> <p> <select name="Make"> <option value="Make" onpick="#tutorial_tc">Make</option> <option value="Audi" onpick="#tutorial_tc">Audi</option> <option value="BMW" onpick="#tutorial_tc">BMW</option> </select><br/> </p> </card> </wml> So here I am getting values in $Make.. now How can i pass this value in PHP ? any idea.. |
|
#2
|
||||
|
||||
|
Quote:
PHP Code:
Will put the value of $Make in the wml that is sent to the browser. If you need the use the variable inside WML you could do this: PHP Code:
It's been a while since I've needed to do that but it's either \$Make or $$Make |
|
#3
|
||||
|
||||
|
Try adding the following into your script - see what PHP thinks any form values are
__________________
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. __________________ |
|
#4
|
||||
|
||||
|
Another problem is facing now.. I think above code is proper But then also now i m not get values in $Make (in WML Variable) I don't whats wrong in this ?
|
|
#5
|
||||
|
||||
|
I can't test this on a phone right now, so I can't really help,
I can only give you my experience. I tend to avoid WML variables. I try to get everything from PHP - this may not be the best solution, but it works for me. As WML script, I assume that you are sort of using that - is a javascript derivative it is client side -> therefore PHP isn't the solution. |
|
#6
|
||||
|
||||
|
I didn't getting idea what to do now? because even simple WML file is also not woking..
for example I have below WML file. But in emulator Select menu is not working.. I didn't found what is wrong with it. Code:
<?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"> <wml> <card id="card1" title="OnPick Example"> <p> <select name="select"> <option value="test1">Test1</option> <option value="test2">Test2</option> <option value="test3">Test3</option> </select> </p> </card> </wml> |
|
#7
|
||||
|
||||
|
I just tried it using the WML plugin for firefox and it works fine.
I would suspect something wrong with your emulator or server. What's the error you get? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Need WML PHP Variable help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|