473,785 Members | 3,245 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WML Form - Retrieving Variables

2 New Member
Hi Guys,
I hope you can help me out with this .... its really urgent !!

I am using PERL as the scripting language and WML as the formatting language as I am working on a WAP application.

I have passed variables froma WML form .... the code is as follows ....

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0"?>
  2. <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
  3. "http://www.wapforum.org/DTD/wml_1.1.xml">
  4. <wml>
  5. <template>
  6. <do type="prev" label="Back">
  7. <prev/>
  8. </do>
  9. </template>
  10. <card id="main" title="CodeHelp" newcontext="false">
  11. <do type="accept" label="Add this link">
  12. <go method="post" href="http://localhost/perl/test.pl">
  13. <postfield name="title" value="$title"/>
  14. <postfield name="url" value="$url"/>
  15. <postfield name="desc" value="$desc"/>
  16. </go>
  17. </do>
  18. <p>WML Add link page</p>
  19. <p>
  20. All titles must be
  21. <b>20 characters</b>
  22. or less.
  23. </p>
  24. <p>
  25. <fieldset>Title:
  26. <input type="text" name="title" size="20"
  27. emptyok="false"/>
  28. </fieldset>
  29. </p>
  30. <p>The URL you post
  31. <b>MUST</b>
  32. specify a .wml file in a valid location.</p>
  33. <p>
  34. <fieldset>URL:
  35. <input type="text" name="url" size="100"
  36. emptyok="false"/>
  37. </fieldset>
  38. </p>
  39. <p>Make sure you include in your description all the
  40. searchable keywords people may enter when
  41. looking for your site.</p>
  42. <p>
  43. <fieldset>Description:
  44. <input type="text" name="desc" size="800"
  45. emptyok="true"/>
  46. </fieldset>
  47. </p>
  48. </card>
  49. </wml>
  50.  
Now how can I retrieve the variables title,url and desc in the PERL page test.pl ???

This is the only thing that I am stuck with ... the deadline is around the corner ... I wud really appreciate if some body cud help me out real soon !!
Apr 12 '07 #1
3 1810
KevinADC
4,059 Recognized Expert Specialist
maybe:

CGI::Wml
Apr 12 '07 #2
coolprashh
2 New Member
dude ... I dont think I can find anything that will work from that link ... plz elaborate on what I shud see ...
Apr 12 '07 #3
KevinADC
4,059 Recognized Expert Specialist
sorry.... dude,

I don't know much about WML. For all I know you can use the standard CGI module to parse data sent via forms in WML applications. Search around on CPAN for more WML modules or try using the standard CGI module.
Apr 12 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
2376
by: lawrence | last post by:
I've the form you see below, which is supposed to upload an image. I expect the image name as a var to be $uploadedFile. In the receiving function, I've this code: global $uploadedFile, $uploadedFile_size, $uploadedFile_name; echo "here is the file name: $uploadedFile, $uploadedFile_size, $uploadedFile_name; <hr> "; $uploadedFile_name = $formatTextObject->processFileName($uploadedFile_name); $uploadedFile_name =...
6
1910
by: GoCMS | last post by:
Hi, guys: I am trying debug other people(who has left company)'s ASP code, and had difficulty understanding the use of a hidden asp page. The application has an index page, like MyIndex.asp which has nothing but a couple of other asp files, like <frameset COLS="0,0,52%, *"> <frame NAME="hidden" SRC="MyHidden.asp"> <frame NAME="content" SRC="MyContent.asp"> </frameset>
2
2629
by: George | last post by:
VS.NET 2002/VB Is it possible to retrieve HTML form variables that are hidden input types using Request.QueryString() and/or Request.Form()? I have tried various ways of using those, but to no avail. My HTML form method is set to POST, and I thought I had read somewhere that this could be done. If it is not possible, is there any way to retrieve HTML form variables into my .aspx page?
7
17340
by: Mark Waser | last post by:
Hi all, I'm trying to post multipart/form-data to a web page but seem to have run into a wall. I'm familiar with RFC 1867 and have done this before (with AOLServer and Tcl) but just can't seem to get it to work in Visual Basic. I tried coding it once myself from scratch and then modified a class that I found on a newsgroup (referenced below). Both seem to be doing the same thing and neither works (or rather, they seem to work but the...
2
2298
by: TD | last post by:
I've read several posts here that say global variables are reset whenever an unhandled error occurs. I want to use a custom form property instead of a global variable to store a boolean value. My question is does a custom form property get reset also? Was also wondering if there is any reason one would ever use a global variable since the consensus seems to be to never use global variables?
4
13542
by: just.an.imbecile | last post by:
I have searched alot for this and cannot find an answer. I have a simple form, and when it submits, I have it posting the data. I have a simple function to loop through and print out all my form data: <table class="data" width="90%"> <tr> <th>Name</th> <th>Value</th></tr> <% string val;
10
3701
by: Girish | last post by:
Hi Everyone, I am passing a form to a php script for further processing. I am able to retrieve the last value set for that given form variable using $variable=$_REQUEST;
6
1935
by: ReubenPatterson | last post by:
Hi, this is my first attempt to create variables to assign a value, so thanks for any suggestions. I have a field in a form I'd like to match a substring of to another table and insert. The problem is in retrieving the value. It pops a window where if I put in the AcctNumb value it works, but this is obviously not right. My code is: Private Sub FinishBtn_Click() Dim AcctSysprin As String AcctSysprin = "Forms!!.Value" ...
0
3396
bmallett
by: bmallett | last post by:
First off, i would like to thank everyone for any and all help with this. That being said, I am having a problem retrieving/posting my dynamic form data. I have a form that has multiple options within options. I have everything being dynamically named from the previously dynamically named element. (I hope this makes sense.) I am not able to retrieve any of the dynamically created values. I can view them on the source page but can't pull them...
0
9645
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9480
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10325
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10148
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7499
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4053
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3646
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.