WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How to

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Passing Variables through a Link

Keywords:   variables 

Question:

I am trying to pass a varible through a link in the followig line.
WebOut('<BR><BR><Div Align="Center"><a href="http://something.com/webcgi/webbatch.exe?tests/ttt.web?turn=%JohnTurn%">Play Again?</a></Div>',1)
The varible I want to pass is 'JohnTurn'. But Webbatch is already passing 'tests/ttt.web' Is there anyway I can still pass my variable?

Answer:

= signs are reserved characters on command line. you can't use it there. I believe it's...
   href="http://something.com/webcgi/webbatch.exe?tests/ttt.web+%JohnTurn%
or (if you need the "turn" string maybe use something else...
  href="http://something.com/webcgi/webbatch.exe?tests/ttt.web+turn$%JohnTurn%
and then look for a $ instead of an = .

Resolution:

I was only using the turn= because I didn't know how to retrieve the command line info.

The /webcgi/webbatch.exe?tests/ttt.web+%JohnTurn%

Worked.. it passed the info. And I figured out to use WebCmdData to retrieve it.

The program works great now. Thanks for your help.


Article ID:   W14174
Filename:   Passing Variables through a Link.txt
File Created: 1999:10:26:11:22:58
Last Updated: 1999:10:26:11:22:58