WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 21st, 2004, 07:18 AM
suzie_g suzie_g is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 suzie_g User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Urgent help needed: WML & ASP

hi all

im really stuck with some code at the mo and need some help. i want to store the info enter during registration in an access database using asp. i have set the mime types and iis5.0 is running. when ever i try to store the info using an emulator i get the following error: "page not found". i've been through my code bout a million times and still can't find the problem, its prob something small but can't see where im going wrong, i've included the two files

can someone pls help me im going crazy!!!

Code:
 
<% 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="personalDetails" title="WAP CHAT - Register">

	
<p align="center"><b> Personal Details </b></p>

<p>

<b>Name:</b> <input name="varName" type="text" />
<b>Gender:</b> <br/>
         <select name="varGender"> 
	  <option value="Male">Male</option>
          <option value="Female">Female</option>
         </select>
<b>Date of Birth:</b> <input name="varDOB" type="text" /><br/>
<b>Student Number:</b> <input name="varStudentNumber" type="text" /><br/>
</p>


<p align="center"><b> Login Information </b></p>

<p>

<b>Username:</b> <input name="varUserame" type="text" />
<b>Password:</b> <input name="varPassword" type="password" maxlength="10"/>

</p>


<p align="center"><b> Credit Card Information </b></p>

<p>

<b> Number:</b> <input name="varCCNumber" type="text" />
<b> Type:</b> <br/>
	 <select name="varCCType"> 
	  <option value="Visa">Visa</option>
          <option value="Master Card">Master Card</option>
	  <option value="American Express">American Express</option>
         </select>
<b> Expiry Date:</b> <input name="varCCExpDate" type="text" /><br/>

</p>

<p align="center">

<do type="accept" label="Confirm Info">
	<go href="logreg.asp" method="get">
		<postfield name="Name" value="$(varName)" />
		<postfield name="Gender" value="$(varGender)" />
		<postfield name="DOB" value="$(varDOB)" />
		<postfield name="StudentNumber" value="$(varStudentNumber)" />
		<postfield name="Username" value="$(varUsername)" />
		<postfield name="Password" value="$(varPassword)" />
		<postfield name="CCNumber" value="$(varCCNumber)" />
		<postfield name="CCType" value="$(varCCType)" />
		<postfield name="CCexpDate" value="$(varCCExpDate)" />
	</go>
</do>
</p>

</card> 
</wml>


Code:
<%@ Language = "VBScript"%><?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN"
"http://www.wapforum.org/DTD/wml13.dtd">

<!--#include file="connect.asp"-->

<wml>
<card id="login" title="W@P CHAT - Login">

<p align="center">

Thank you for entering your details. <br/>
Now you can login below!

</p>

<p>
<a href="login.asp">Login</a>

<%
'Dimension variables

Dim adoCon				'Holds DB Connection object
Dim	rsAddUser			'Holds the RS for the new record to be added

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

adoCon.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
               "Data Source=C:\Inetpub\wwwroot\WAPChat\Room\WAPChat.mdb;" & _
               "Persist Security Info=False"

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

Dim name, gender, dob, stuno, usrname, passwrd, ccnum, cctype, ccexpda

rsAddUser.CursorType = 2
rsAddUser.LockType = 3
rsAddUser.Open adoCon

name = Request.QueryString("Name")
gender = Request.QueryString("Gender")
dob = Request.QueryString("DOB")
stunum = Request.QueryString("StudentNumber")
usrname = Request.QueryString("Username")
passwrd = Request.QueryString("Password")
ccnum = Request.QueryString("CCNumber")
cctype = Request.QueryString("CCType")
ccexpda = Request.QueryString("CCExpDate")


rsAddUser.AddNew
rsAddUser("Name") = name
rsAddUser("Gender") = gender
rsAddUser("DOB") = dob
rsAddUser("StudentNumber") = stunum
rsAddUser("Username") = usrname
rsAddUser("Password") = passwrd
rsAddUser("CCNumber") = ccnum
rsAddUser("CCType") = cctype
rsAddUser("CCExpDate") = ccexpda

rsAdduser.Update

rsAddUser.Close
Set rsAddUser = nothing
adocon.Close
Set adoCon = nothing

%>

</p>
</card>
</wml>

Reply With Quote
  #2  
Old May 21st, 2004, 07:55 AM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,667 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 4 Days 5 h 1 m 49 sec
Reputation Power: 1618
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Bit confused at the code, I am not good at ASP, but in the first script, try chaning logreg.asp to the full path (that may help). Also, is it right that you are useing the "get method"?
__________________
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

# Any form of employment is strictly prohibited ......


__________________

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.

__________________

Reply With Quote
  #3  
Old May 21st, 2004, 08:17 AM
suzie_g suzie_g is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 2 suzie_g User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
i tried using the full path but still get the same error, i've been looking through forums and ppl with similar probs seem to be told to use teh get method, do u think i shoud use something else instead of get?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Urgent help needed: WML & ASP


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway