Jump to content

Recommended Posts

Posted

Sorry if this is something simple, I've tried and I can see how it works just can't get it to work on the script I want!

What I need to do is have a box that gives a choice, from there get 2 or 3 input boxes that feed variables to a general function to carry out what I want to do.

The process works great if I'm not passing a variable to the sub functions but as soon as I do I get a "Variable not decared" error.

Here is my script - I've checked the forum and I just can't seem to see anything that helps.

Hope someone can assist!!

Peter

myscript.txt

Posted

You need to declare the variables

Put this at top of script under the #include

Global $Username, $Oldcomp, $Newcomp

"The mediocre teacher tells. The Good teacher explains. The superior teacher demonstrates. The great teacher inspires." -William Arthur Ward

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...