|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
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
|
|||
|
|||
|
Wap, forms and PHP
Ok, I'm am having som trouble getting this to work.. anybody see anything wrong? =)
wap.php: PHP Code:
wap2.php: PHP Code:
|
|
#2
|
||||
|
||||
|
have you tried changing post to get to see if that works?
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /...../devshedwap1.php on line 4
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#3
|
|||
|
|||
|
Yep.. tried that...
(Err.. That parse error of yours.. did you get that on my script? ) |
|
#4
|
||||
|
||||
|
parse error, yeah fraid so. i just cut n pasted it then saw that and carried on working on what i'm doing.......
if you change it to get don't the vars appear in the query string? - if they do the second script should pick it up okay if something doesn't work for me one way around i reverse it and try that way: if it's passing the vars okay i'd try changing if($tekst && $dato && $belop) { ....... to if(!$tekst || $dato || $belop){ // nie }else{ // ya } are you in norway? lovely place. was in Vanvikan not so long ago at a friend's party, a long way to travel but well worth it - loved reindeer stew and the chilli nuts there are great!! |
|
#5
|
|||
|
|||
|
What blew my cover? My variable names? Damn
![]() Yep, Norwegian ![]() I've never tasted reindeer stew though.. But I've tasted moose though (Hm.. is that the right translation? anyway, in norwegian then: elg :P ) Anyway, what wierd PHP version are you running? :P I didn't get any parse error, not on my pc, and not on my Sony Ericsson T630... But anyways, just forget the if then, I'll be happy as long as i somehow can get some freakin' php variables in wap2.php :P (By the way.. now, when i enter all values and press "kjor" in wap.php, i come to wap2.php, and can see the card label, but everything else is blank? How the hell? (And yes, the server reports PHP errors, so it can't be that...) And about seeing the variables. I haven't seen anything i put in those fields in wap.php even one time.. (the <p>" . $tekst . " " . $dato . " " . $belop . " " . $type; " should echo them if they are there )(By the way.. when where you here in Norway? Winter? :P Did you think it was cold? )And oh, yeah, one last thing.. yes, the variables appear in the adress field when i use get, but i still don't see anything echoed... wierd.. |
|
#6
|
|||
|
|||
|
Never mind, works now... (All right, was a PHP error.. :P inside the PHP i didn't show you
Oh well... ![]() |
|
#7
|
||||
|
||||
|
Cool, pleased you got it sorted out!
I was over there about 3 monts ago, it snowed once when we were in Trondeihm and went as low as -2 the rest of the time is was okay. I had reindeer, elk and whale over there. The elk was really, really nice and the whale was similar to smoked salmon I thought just darker. Our friend from over there is coming over to Liverpool for a weekend soon, I hope he brings some bags of Chili Nuts! We've just got reverse billing sms into Norway on 2098 and now have WAP billing there! Take a look around your teletext and you should see an ad for our WAP site on it! Anyway, pleased you got your code problem sorted! |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Wap, forms and PHP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|