Print Page | Close Window

Wap Site

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: General Discussion
Forum Description: General discussion and chat on any topic.
URL: https://forums.webwiz.net/forum_posts.asp?TID=10204
Printed Date: 01 April 2026 at 5:47am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Wap Site
Posted By: Rebel Gaa
Subject: Wap Site
Date Posted: 28 April 2004 at 2:38pm

Hi,

My question is as follows. I'm currently writing a Wap page in which people can use their mobile phone to view the latest posts on my web wiz forum. What i am wondering is does this hamper the security of the forum? Also is their anything else i should look out for when writing such a wap site based upon a web wiz forum?

Post if you wan anymore info.




Replies:
Posted By: Semikolon
Date Posted: 28 April 2004 at 5:10pm
If you don't rewrite any of the ASP code (exept for Response.Write()), you shouldn't have to worry about the security. the security is not on the client side, but on the server side.


Posted By: Rebel Gaa
Date Posted: 29 April 2004 at 4:07am
How do you mean not to rewrite? At the moment i have code(connection string etc) written in .asp file and shows up on my mobile. Could you explain another way, using the Response.Write()?


Posted By: Gullanian
Date Posted: 29 April 2004 at 5:36am
Basically it's 100% fine as long as you don't use forms.  If you use forms then you need to start worrying about security.


Posted By: Rebel Gaa
Date Posted: 29 April 2004 at 5:57am

This is the code that i am using, no sign of forms! My worry is could people get hold of my database pathname?

<% Response.ContentType = "text/vnd.wap.wml" %>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" " http://www.wapforum.org/DTD/wml_1.1.xml - http://www.wapforum.org/DTD/wml_1.1.xml ">
<wml>
<card title="Forum">
<p align="left">Most recent topics being discussed, click on topic to view last post:</p>

<p align="left">
<%
Dim adoCon  

Dim strCon


Set adoCon = Server.CreateObject("ADODB.Connection")

strCon = "Provider=Microsoft.Jet.OLEDB.4.0; DATA Source='\\xxxxxxx.mdb';"

adoCon.Open strCon

Dim rsForum
Dim strSql

Set rsForum = Server.CreateObject("ADODB.Recordset")

strSql= "SELECT TOP 10 tblTopic.* FROM tblTopic ORDER BY tblTopic.Last_entry_date DESC"

rsForum.CursorType = 3

rsForum.Open strSql, adoCon

%>

<%
  Do while NOT rsForum.EOF
%>


<a href=" http://www.rebelgaa.com/wap/forum/post.asp?TID=<% - http://www.rebelgaa.com/wap/forum/post.asp?TID=<% = rsForum("Topic_ID") %>"><% = rsForum("Subject") %></a><br/><br/>

<%
rsForum.MoveNext
Loop
%>

<%
rsForum.Close
Set rsForum = Nothing
Set strCon = Nothing
Set adoCon = Nothing
%>
</p>

<p align="center"><a href="/wap/index.asp">Main Page</a></p>

</card>
</wml>



Posted By: Semikolon
Date Posted: 29 April 2004 at 9:21am
this will work fine and the users has to download the asp source to get your db path, which is impossible to do with correct server settings (unless they hack your server of course)

actually, it's the same as html, just that instead of using HTML you use WML (Wireless markup language)



but remember to close the ado connection object
you don't need to set strings to nothing.
<%
rsForum.Close
Set rsForum = Nothing
adoCon.Close
Set adoCon = Nothing
%>


Posted By: Rebel Gaa
Date Posted: 29 April 2004 at 9:57am
Thanks for that, well continue with it so.


Posted By: pmormr
Date Posted: 29 April 2004 at 4:08pm
that would get annoying on the never-ending thread... every 20 seconds your phone would go off

-------------
Paul A Morgan

http://www.pmorganphoto.com/" rel="nofollow - http://www.pmorganphoto.com/


Posted By: Rebel Gaa
Date Posted: 23 June 2004 at 11:42am

Wondering if any one could help me with this.

The Wap Site i set up works fine on some mobiles and displays "File Format Unkown" on others when they try and access the wap site. The mobiles can be the same make, ie both Nokia.

The page is a .asp page.

Anyone have any ideas what the problem might be and how it could be solved?



Posted By: Rebel Gaa
Date Posted: 24 June 2004 at 8:03am
Originally posted by Rebel Gaa Rebel Gaa wrote:

Wondering if any one could help me with this.

The Wap Site i set up works fine on some mobiles and displays "File Format Unkown" on others when they try and access the wap site. The mobiles can be the same make, ie both Nokia.

The page is a .asp page.

Anyone have any ideas what the problem might be and how it could be solved?

Any help please?



Posted By: Gullanian
Date Posted: 24 June 2004 at 8:37am
Is the ASP page coughing up WML?


Posted By: Rebel Gaa
Date Posted: 24 June 2004 at 8:47am

The following is the code to the page, its called index.asp. It works prefect on some phones and has problems on others ("File Format Unknown") Thanks for your help.

<%
 'Dimenstion Variables
 Dim strDatabasePath  

 'Initialise the path to the access database if inside another folder
 strDatabasePath = ("")

 'Call the sub procedure to increment the hit counters
 Call IncrementHitCount(strDatabasePath)
 %>


<% Response.ContentType = "text/vnd.wap.wml"
%>

<?xml version="1.0"?>

<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" " http://www.wapforum.org/DTD/wml_1.1.xml - http://www.wapforum.org/DTD/wml_1.1.xml ">

<wml>

<card id="MainCard" title="XXX">

<p align="center">

<img src="/images/wap/waplogo.wbmp" alt=" logo"/>

</p>
<p align="center">

XXXXXXXX

</p>

<p align="center">

<a href="/wap/XXX/index.asp">XXX</a><br/>
<a href="/wap/XXX/index.asp">XXXX</a><br/>
<a href="/wap/XXX/index.asp">XXX</a><br/>
<a href="/wap/XXX/index.asp">XXXX</a><br/>
<a href="/wap/XXX/index.asp">XXX</a><br/>
<a href="/wap/XXX/index.asp">XXXX</a><br/>
<a href="/wap/XXX/index.asp">XXX</a><br/>
<a href="/wap/XXX/index.asp">XXXX</a><br/>

Copyright © 2004


<!--#include file="hit_count.inc"-->
 
</p>
  

      
</card>

</wml>



Posted By: dpyers
Date Posted: 24 June 2004 at 8:55am

Different series of nokia phones have different browsing capabilities, plus the partucular phine has to be configured properly for browsing.

Couple of usefull links are:

  • Nokia device specs - http://www.forum.nokia.com/main/0,6566,015,00.html - http://www.forum.nokia.com/main/0,6566,015,00.html
  • Support forums - check out the Browsing Forums - http://discussion.forum.nokia.com/forum/ - http://discussion.forum.nokia.com/forum/

Edit: - Some series of Nokias are very strict about what's accepted for spacing/white space.



-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Gullanian
Date Posted: 24 June 2004 at 9:27am
I dont know if this is part of the problem, but:

http://www.wapforum.org/DTD/wml_1.1.xml

Has errors on it.


Posted By: Rebel Gaa
Date Posted: 24 June 2004 at 9:29am

Originally posted by Gullanian Gullanian wrote:

I dont know if this is part of the problem, but:

http://www.wapforum.org/DTD/wml_1.1.xml

Has errors on it.

When you say it has errors on it, what do you mean? What kind of errors?



Posted By: dpyers
Date Posted: 24 June 2004 at 9:47am
SFAIK, that's still a valid dtd but I believe it's been deprecated in favor of the OMA dtd's - http://www.openmobilealliance.org/tech/DTD/index.htm - http://www.openmobilealliance.org/tech/DTD/index.htm

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Rebel Gaa
Date Posted: 24 June 2004 at 9:52am

Ok i know what your saying.

Would the image on the wap page be also a problem, possible that some phone browsers might not support the download of images?



Posted By: Rebel Gaa
Date Posted: 02 July 2004 at 6:31pm

As you can see by the above code the dtd i'm using http://www.wapforum.org/DTD/wml_1.1.xml - http://www.wapforum.org/DTD/wml_1.1.xml

What dtd should i be using, whats the most recent?

Any more help?

Please




Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net