SunQuest
           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 March 22nd, 2004, 02:04 PM
Jaiyan Jaiyan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 13 Jaiyan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Text Input in WML & ASP

Hi all,

I'm having a few problems taking data from an input field and sending it to another .asp WAP page, and if anyone knows the answer I'd be grateful.

Basically the problem I have is that when I submit the data from one page to another, the second page that processes the data automatically drops straight through to the 'Else' part of the 'If' statement, when I know full well that there are records that match the 'If' part. It's almost as if the data isn't being sent with the link.

Here's the code:

[code pulled]

I'm guessing the problem lies in the moduleID = Request.QueryString("moduleID") line, but I'm not sure. I've tried changing it to moduleID = Request.form("moduleID"), but that didn't work and it still dropped out to the 'Else' statement.

As I said, even if I test this with a moduleID that I know exists, it still drops out to the 'Else' statement. I'm not sure what to try next

Anyone have any experience?

Cheers,
Lloyd

Last edited by Jaiyan : March 30th, 2004 at 11:00 AM.

Reply With Quote
  #2  
Old March 28th, 2004, 12:53 PM
nitrosoft nitrosoft is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2004
Posts: 2 nitrosoft User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
The variable name you are sending the page in the GET method is called time table
------------------------------------------------
<postfield name="timetable" value="$timetable"/>
------------------------------------------------

Yet you are asking for a different variable
------------------------------------------------
moduleID = Request.QueryString("moduleID")
------------------------------------------------

try
------------------------------------------------
moduleID = Request.QueryString("timetable")
------------------------------------------------

just a note, are you by any chance in the third year studying mobile computing at staffordshire university?

everything about this problem points to the assignment one set for that module.

Reply With Quote
  #3  
Old March 30th, 2004, 10:58 AM
Jaiyan Jaiyan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 13 Jaiyan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi! Thanks for your response!

And yep! I'm doing the Mobile Computing module
I've just got this one problem left to iron out but it's being a pain.

Regarding the post in hand, that mistake you picked up was just an typing error on my part
I have the same problem as this in a different file, which doesn't have the typo error. And unfortunately, fixing the typo in this script hasn't worked either. I'm not sure what's going on with it but I'm determined to find out , that or I'm going to strip this thing down and start again!

Back to the drawing board I think! Thanks anyway

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Text Input in 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 4 hosted by Hostway