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 < where you want a < and > where you want a >
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
:'(
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...
no it cant!
God, I need to stop being so believing.
I'm really a girl.
Boobs and everything, me.
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
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
I think you have to do it in IE.
Mozilla doesn't like it.
Posted by
Ana, 11:30, 26th June 2003:
It only works if you've got javascript turned on, I'm afraid
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
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?