|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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 ![]() |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Text Input in WML & ASP |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|