|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
||||
|
||||
|
hey all,
not 100% sure if this should go in the wap or PHP section but thought it could be this one, sorry if i was wrong.. here goes anyway.... i have a problem with my code: Quote:
the problem is that i cant get the results to display. i am trying to get teh input from the user from teh input box called "name" and pass that into the sql query.. i wasnt having any luck at all so thought id try and put it into a normal variable and pass that into the query. $testvar = "$(name)"; this didnt help at all.. the sql query works because i can hard code a result like %pay% and it will return a few results but with the variables it wont work. i put some echos at the bottom to see if the variables held the input and it did. i am completely confused.. any advice would be grand.. thx Jon |
|
#2
|
||||
|
||||
|
I cheat when it comes top wml and use PHP variables. try this - (untested), not sure whether this would work posting to a card in the original deck but give it a go and see what happens. You were missing post field or method -may have caused the problem - if you just used get method, then still use php to capture the result: $_GET['name']
PHP Code:
__________________
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. __________________ |
|
#3
|
||||
|
||||
|
thx for the advice,
i am having a new problem now its a bit werid... the code FULLY works on an online emulator, http://www.wapsilon.com/ , but wont run on my mobile.. wont even load now.. says "unsupported type" i know the database connection is good as it works on teh emulator and the html version works fine.. the emulator will run it perfectly.. but not on my phone, the phone is a samsung e700 btw. i tried wapalizer or something similar to that name and the first page loads, which is more than my mobile, but it wont action the query part of the script. here is my full and changed code:Quote:
i really dont ahve a clue whats going on to make it work on one place and not on another it doesnt make much sense to me, i know i am new to this stuff but its frying my brain. any ideas plz? Jon |
|
#4
|
||||
|
||||
|
Try running the final outputted code through a validator.
Good way to check this locally is to use Firefox browser with the wml browser extension or Opera -> this will output the final source code regardless and it show errors. J |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > getting my variables to work with each other |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|