>
New Topic
>
Reply<
Esato Forum Index
>
Sony Ericsson / Sony >
General
> wap with cgi/perl files
Bookmark topic
Seems like it was a html "tag"-problem in the last post... Here it is again!
I'm developing a wap page which contains a cgi-script, but I'm having trouble launching the page with a T68. All other emulators work great! It seems like the T68 is very conservative with the syntax. So, anybody know which format to use when writing a perl file for a wap-browser? My script are as follows:
#!/usr/bin/perl
print "Content-Type: text/vnd.wap.wml\n\n";
print "<?xml version=\"1.0\"?>";
print "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \n";
print "\"http://www.wapforum.org/DTD/wml_1.1.xml\">";
print "<wml>";
print "<card id\=\"cardtitle\" title\=pagetitle>";
print "<p align\=\"left\">";
<script functions>
.
.
.
print "<\/p>";
print "<\/card>";
print "<\/wml>";
--
Posted: 2002-06-03 19:40:00
Edit :
Quote
it's been some time since i used perl, but i don't think this i right..
print "<\/p>";
think it should be:
print "</p>";
also the "\=" in this line are not needed: (i think)
print "<card id\=\"cardtitle\" title\=pagetitle>";
should be:
print "<card id=\"cardtitle\" title=\"pagetitle\">";
_________________
/Oskar
[ This Message was edited by: oskar on 2002-06-03 18:48 ]
--
Posted: 2002-06-03 19:43:00
Edit :
Quote
It might be the linebreak inside the doctype.
--
Posted: 2002-06-03 21:03:00
Edit :
Quote
I've found the error, it was a combination of to many escape characters in header and ampersand (&) in url location (which is a reserved character, had to write & instead).
--
Posted: 2002-06-03 22:42:00
Edit :
Quote
New Topic
Reply