html question on PINK
James Anderson
Posts: 52
I cant view variables from my PINK! I typed
the value of var01 is : <nb_var01>
into the html code and the page works fine but nothing shows up in the spot where the variable should be.
any suggestions?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
World of Warcraft Website
Star Trek official website
Google (Man's best friend...)
Post Edited (wannabe uber-geek) : 7/20/2006 11:36:42 PM GMT
the value of var01 is : <nb_var01>
into the html code and the page works fine but nothing shows up in the spot where the variable should be.
any suggestions?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
World of Warcraft Website
Star Trek official website
Google (Man's best friend...)
Post Edited (wannabe uber-geek) : 7/20/2006 11:36:42 PM GMT
Comments
Then make sure you put something in variable one. Those are string variables, so a variable with nothing in it will show... well, nothing at all. The empty string we call it. A numeric variable in other contexts will show zero, but not a string variable.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
World of Warcraft Website
Star Trek official website
Google (Man's best friend...)
any ideas? I verified that the PINK is receiving the variables with telnet and
the variables show up fine on the factory variable page.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
World of Warcraft Website
Star Trek official website
Google (Man's best friend...)
' {$STAMP BS2}
' {$PBASIC 2.5}
NBVAR VAR Word
DO
SEROUT 8,396,[noparse][[/noparse]"!NB0R01"]
SERIN 7,396,[noparse][[/noparse]STR NBVAR\16\CLS]
DEBUG "register 01 ", STR NBVAR
SEROUT 1, 16780, [noparse][[/noparse]30]
SEROUT 1, 16780, [noparse][[/noparse]"hello register ", STR NBVAR]
SEROUT 1, 16780, [noparse][[/noparse]31]
SEROUT 1, 16780, [noparse][[/noparse]"quispqix telnet server VT-100"]
LOOP
This above reads the PINK variable register 01 and prints the value in DEBUG and on my vt100
This one below writes my name to register 01:
' PINK_03.bs2
' {$STAMP BS2}
' {$PBASIC 2.5}
SEROUT 8,396,[noparse][[/noparse]"!NB0W01:curtis",CLS]
END
This in html:
<html>
<FORM method="post" action="/test01.html">
<P>
What value would you like stored in variable 01?
<INPUT name="Nb_var01"type="text"size="24"maxlength="63">
<INPUT type="submit">
</P>
</FORM>
</HTML>
and this reads in html:
<html>
The value in variable 01 is: <Nb_var01>
\</html>
The PINK is very powerful.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It is better to burn out than to fade away,... Because rust, never sleeps!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
World of Warcraft Website
Star Trek official website
Google (Man's best friend...)
my coding is attached.
any ideas?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
World of Warcraft Website
Star Trek official website
Google (Man's best friend...)
Post Edited (wannabe uber-geek) : 7/23/2006 11:43:29 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
It is better to burn out than to fade away,... Because rust, never sleeps!
Post Edited (quispqix) : 7/24/2006 3:18:02 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
There once was a lady named Bright
who traveled much faster than light
She departed one day in a relative way
and Returned on the Previous Night
Cheers,
Wannabe Ub3r Geek
World of Warcraft Website
Star Trek official website
Google (Man's best friend...)