Discussion » Help (php And Wml)

This is a read-only copy. The forum ran on iamcal.com from 2000 until its database was lost in 2016, and this topic was rebuilt from copies saved by the Internet Archive's Wayback Machine. Some replies may be missing.
Posted by Ana, 14:01, 24th June 2003:
 
<?php
header("Content-type:text/vnd.wap.wml");
echo "<?xml version=\"1.0\"?>\n";
echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"" .
" \"http://www.wapforum.org/DTD/wml_1.1.xml\">\n";

$name = $HTTP_GET_VARS["name"];

if ($name) {
echo "<wml><card id=\"begin\" title=\"Quiz\">";
echo "<p>Welcome ";
echo $name;
echo "</p></card></wml>";
}

else {
echo "<wml><card id=\"begin\" title=\"Quiz\">";
echo "<p>Please enter a username to begin:";
echo "<br/><input title=\"Name\" name=\"name\" value=\"\"/>";
echo "<anchor title=\"Begin\">Begin<go href=\"index.php\" method=\"get\">";
echo "<postfield name=\"name\" value=\"$name\"/></go></anchor>";
echo "</p></card></wml>";
}


?>


Can any one enlighten me as to why the variable "name" isn't being passed when I click "begin"? I know it's simple, but I'm tired and baffled
Posted by Ana, 14:02, 24th June 2003:
 
Ha! Half my code just got filtered out grr
Posted by Ana, 14:05, 24th June 2003:
 
well, the missing bits of wml are at www.wapsilon.com/sourceview.cgi?http://q...
Posted by Ana, 14:09, 24th June 2003:
 
It's working now, I just realised what I'd done :o]
Posted by cal, 14:39, 24th June 2003:
 
When posting code on this forum, use &lt; where you want a < and &gt; where you want a >
Posted by cal, 14:40, 24th June 2003:
 
a girl

that's a programmer

on this site


joy is me ^_^
Posted by jlittle, 14:46, 24th June 2003:
 
maybe she can tell me how to get wap working :\
Posted by Grim..., 15:56, 24th June 2003:
 
(Maybe she's a boy with a girls name...)
Posted by cal, 16:47, 24th June 2003:
 
damn. you're probably right

:'(
Posted by Foghorn Leghorn, 16:49, 24th June 2003:
 
No, she isnt..check out her lovely wee face on her pic.
Posted by Grim..., 16:50, 24th June 2003:
 
Oh yeah - that prooves it.

After all, it can't be someone else's picture...
Posted by Foghorn Leghorn, 16:51, 24th June 2003:
 
no it cant!

God, I need to stop being so believing.
Posted by arsepuppy, 16:53, 24th June 2003:
 
I'm really a girl.

Boobs and everything, me.
Posted by Foghorn Leghorn, 16:53, 24th June 2003:
 
Big boobs?
Posted by arsepuppy, 16:54, 24th June 2003:
 
Nah, 32C, so not huge.
Posted by Foghorn Leghorn, 16:55, 24th June 2003:
 
waste.
Posted by cal, 17:23, 24th June 2003:
 
err - his/her profile pic is bust...
Posted by Ana, 12:47, 25th June 2003:
 
Lol, my pic's working again now

You'll just have to take my word for it that it's me...

...and jlittle, if you email me I'll try to help :o)
Posted by beargod, 12:58, 25th June 2003:
 
picture and your website are both not working for me :(
Posted by cal, 13:20, 25th June 2003:
 
she's a girl!
Posted by Ana, 13:27, 25th June 2003:
 
Beargod: should be working now? It keeps going down, I don't know why - I haven't been able to log in via ftp at all today (and just when I had a load of changes to make as well, *humph*)
Posted by Ana, 13:40, 25th June 2003:
 
Yep cal ;o) <cheeky smile>
Posted by beargod, 14:06, 25th June 2003:
 
nope no luck for me at all, how strange it is not working
Posted by jlittle, 14:26, 25th June 2003:
 
not here either ;(
Posted by arsepuppy, 14:34, 25th June 2003:
 
I think you have to do it in IE.

Mozilla doesn't like it.
Posted by beargod, 14:36, 25th June 2003:
 
thats sucks :(
Posted by beargod, 14:38, 25th June 2003:
 
nope still no look in IE
Posted by Ana, 11:30, 26th June 2003:
 
It only works if you've got javascript turned on, I'm afraid
Posted by Foghorn Leghorn, 11:33, 26th June 2003:
 
Ana, myself and my mate recognise you from somewhere. Where do you live?
Posted by beargod, 11:35, 26th June 2003:
 
It worked eventually, but it just was not there
Posted by Ana, 11:35, 26th June 2003:
 
Cumbria
Posted by jlittle, 11:36, 26th June 2003:
 
Hillcrest
Posted by jlittle, 11:36, 26th June 2003:
 
doh, beat me to it
Posted by Foghorn Leghorn, 11:38, 26th June 2003:
 
Cumbria, hmmm..nope. Must be someone else then.
Posted by Ana, 11:40, 26th June 2003:
 
Haha jlittle, you've got me worried now, that's my estate :o/
Posted by jlittle, 11:41, 26th June 2003:
 
whois lonely-world.com, innit.
Posted by Ana, 11:46, 26th June 2003:
 
Just out of interest foghorn, who did I remind you of?