Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-22-2005, 12:05 PM   #1
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
read client-side variable out of webpage

I've got a webpage I need help reading variables out of. It's actually a wml page for a wap site. I've got forms set up to enter name, city, and state. How can I read these out of the page via some action from the client, so that I can incorporate the three variables into a URL template text file on my server?

Currently I have to reuest a non-existant URL with the three variables in it from my server, and then I read these out of the access log and strip the variables that way. This sucks, because when you request the non-existant URL from my server you get taken to the 404 not found page, and then you have to click back.

So, I assume there HAS to be a way to make the client somehow communicate the variables to the server, but I'll be darned if I can figure out how. This wml markup is so strict that it seems doubtful the solution will be in the page source.

Oh, and I DO have server-side includes ENABLED, so I expect the solution will somehow come from that avenue...

Anybody feel like pointing me in the right direction here? Seriously appreciate it...

Thanks in advance,

Old 05-23-2005, 11:54 AM   #2
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
First, I'm not much familiar with WML, so these questions might seem stupid, but is there any kind of client scripting language for it like JavaScript or something? Where does the form currently post to? Seems like you should be able to write some kind of server-side script for the page the form posts to that grabs those variables before displaying the page? (Again, I'm just throwing ideas out here based upon my HTML knowledge...)

Hope this helps a little.
Old 05-23-2005, 12:02 PM   #3
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Original Poster
Rep: Reputation: 30
Hmmm, that does make me think...

Unfortunately, I'm no wml expert either. I keep cutting and pasting examples from the web. Currently, the form doesn't actually post to anything. It jsut sets up three variables on the page and I have a link you can click on that incorporates the variables, like so:

So, you see it doesn't actually post TO anything. BUT, that's a great avenue for me to explore....getting it to do so...

I can only assume you CAN post TO some file with wml, so I think this is where I need to focus. Minimal Javascript is supported, but I don't even want to go down that road

THanks for replying (not a popular topic I see ), I'll look around and see if this is where the solution lies...



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Oracle Client Side Setup nelnel Linux - Newbie 2 06-17-2005 01:39 AM
help with client side NFS-firewall setup and server side NIS-firewall setup niverson Linux - Networking 3 02-02-2004 08:52 AM
display ip address of client on webpage joe_stevensen Programming 4 07-22-2003 06:30 PM
client side routing? heiseltc Linux - Networking 1 03-06-2003 06:40 PM
client side smtp problem f1uke Linux - Newbie 6 02-25-2003 01:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration