Forum Moderators: open

Message Too Old, No Replies

Form Variables Viewer when Browsing

         

astroguy

8:11 pm on Jan 9, 2005 (gmt 0)

10+ Year Member



Hi all,

I'm looking for a software or a method that allow me to view the form variable IN and variable OUT when I browser/submit data on pages.

Yes I know I can view the source - but the thing I'm working on is very complex - viewing the source is very painful.

Thanks for helping.

AstroGuy

BlobFisk

10:29 am on Jan 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hey astroguy,

If this is something that you are writing why not put in a temporary alert system to show the variables as they move? You can comment this out in the production verion.

rocknbil

6:23 pm on Jan 10, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using perl, with incoming data stored in %qs,

foreach $v (keys %qs) { $debug .= "$v $qs{$v}<BR>\n"; }

<!-- $debug -->

This can be done with any server-side language. Just put the comment in an easily accessable area of the page, such as right after the body tag. Now when you view source it's right there.

astroguy

2:17 am on Jan 11, 2005 (gmt 0)

10+ Year Member



Hi there,

Thanks for replying. The problem is I'm working on external site/page that I've no control. I just want to see the variables in and out. We don't have the technology to do that yet? I mean our browser is obviously concious about the variables - why is it hiding it from us?

rocknbil

3:12 am on Jan 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think you might have to elaborate on that one.

you mean as in, an imported external site over which you have no control? Want to find out what you're submitting to another site? I could speculate but sorry don't Grok. :D

astroguy

4:27 pm on Jan 11, 2005 (gmt 0)

10+ Year Member



I'm actually trying to write a script that will read out the inventory number of this particular site.

For example, inventory code TEN-BK9983

[example.com...]

When you type say: 9999 on the quantity and press Buy Now, it will show:

We only have 13 left for product TEN-BK9983

I need the '13'.

The problem now is not to write a script to get '13' out of the page, but come out with a url with form variables that will open up the page with the number of item left.

I hope some experts here can help.

AstroGuy

[edited by: BlobFisk at 4:42 pm (utc) on Jan. 11, 2005]
[edit reason] Examplified URL [/edit]

rocknbil

6:51 pm on Jan 11, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well you have to get the totals from somewhere. "The page" is probably generated from a database that has the items in stock, and it's easy to get those totals if you have access to that database. But the page may have been generated without performing that function, so unless you have access to the database itself, it can't be done.