UBB.Dev
Posted By: Shark5060 CGI Scrip problem - 04/27/2002 12:03 PM
Hi.

I have al litte problem. I've written my first CGI, and I don't know how to "if $1 equal to $2" laugh do you understand ?
an example from my script:
Code
[/code]and i tried to make a third (which didn't work, of course)

[code]
"=" was the code in BASIC (in which i programmed before) but what is it in CGI ?
Posted By: LK Re: CGI Scrip problem - 04/27/2002 12:05 PM
Numbers: ==
Strings: eq

For example:

if ($var == 8) { }
if ($var eq 'hey') { }
Posted By: Shark5060 Re: CGI Scrip problem - 04/27/2002 12:16 PM
ah, THANK you for the fast answer, it helped me much....
© UBB.Developers