|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi, I am doing a project on accessing MS Access database using ASP and WML. I'm very new to ASP and WML. I'm using Nokia Mobile Browser 4.0 to view all my ASP files after installing IIS. But it keeps on giving me the same kind of error on the screen: Cannot load http://localhost/login.asp (HTTP Error 500 Server Error)
What does it mean? Is there anything wrong with my codes? And am I coding ASP correctly? 'cos I require the user to click buttons and not links to move to the next "card"/file. Do I use a form to declare my buttons? Or is there any other way to include submit buttons? Do I have to include <% %> for my buttons? Do I have to create System DSN to add my database for my ASP to connect to my db? Do I have to create my login.asp as XHTML instead of ASP for my buttons? Below is my code for login.asp <%Response.ContentType="text/vnd.wap.wml"%> <?xml version="1.0"?> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd"> <wml> <card id="login" title="Login Page"> <p align = "center"> <form action="#validate" method="get"> Please enter User ID and Password.<br/> User ID : <input type="text" name="userid" maxlength="10"/> Password : <input type="password" name="pw" maxlength="10"/> <br/> <input type="submit" name="Submit" value="Login"/> <input name="Reset" type="reset" value="Reset"/> </form> </p> </card> <card id="validate"> <% Dim conn Dim rs Dim sql, userID, passwd userID=Request.QueryString("userid") passwd=Request.QueryString("pw") Set conn = Server.CreateObject("ADODB.Connection") conn.Open "DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=" & Server.MapPath("db.mdb") sql = "select * from UserProfile where ID='" & userID & "' and password='" & passwd & "'" Set rs = Server.CreateObject("ADODB.Recordset") rs.Open sql, conn Do While not rs.EOF %> <do type="accept"> <go href="welcome.asp"/> </do> <% Loop } else{ %> <p align="center">Invalid Username or Password <a href="#login">Re-Login again</a> </p> <% } rs.Close Set rs = Nothing conn.Close Set conn = Nothing %> </card> </wml> I would appreciate greatly if anyone can advise 'cos I really know nothing about ASP. Already tried searching information in the web but alas, nothing much. Need help urgently.. |
|
#2
|
|||
|
|||
|
I bet there is no problem in your code, but double check
there might be a character missing , or anything simple like forget to close a tag e.g </p> which will cause your mobile browser not to work, so you can try to get S60 SDK "6230i" and it works even if you have Errors, the get the 3300i think its a S40 SDK then it will not work, because its more case sensitive, and again if you for example for get to put name="Password" in the input tag <input type="text" maxlength="2"/> it will fail so check these kind of errors I have just also started with WML Programming Thanx for you time My email is wbiggy@msn.com +27820629080 South Africa Wilbur Sean Bvuma |
|
#3
|
||||
|
||||
|
Hi Wilbur,
Welcome to the forums. This thread is over a year old, and surely been sorted or at least forgotten by the OP, so don't bring up these kind of threads in future.
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#4
|
|||
|
|||
|
Great! I got solution from devshed
Hi, jabba_29
I got stopped knocking my head after reading this thread. Please dont stop posting replies for howlong it may be. Beacause it may be useful for others like. Thanks. Bye Carbonrock Last edited by carbonrock : January 3rd, 2007 at 03:51 AM. Reason: Reply to Person edited |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > ASP + WML: Loading error in Nokia Mobile Browser for ASP file |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|