Trouble Executing PHP Scripts

I am looking for assistance in executing PHP scripts.

I am running the scripts locally in the C:InetpubwwwrootLocalTest.

System:
XP Pro
IIS
Dreamweaver MX

I successfully ran a "hello world" script.

I downloaded a simple calculator and tried to run it. I recieved the following:

**********************************************************
Notice: Undefined index: n1 in c:inetpubwwwrootlocaltestsimpcalc.php on line 34

**********************************************************
n1 is the value of the first number in the calculator.

What does undefined index mean?

Can you point me in a direction?

Comments

  • Hi,

    I'm not sure whether its an array or normal variable. php has property that makes variable declaration implicit, i.e. u can use variable directly without declaring it. However, i forgot how to declare one explicit and how i made it implicit again. If the problem continues, i can search for u.

    Good luck

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

In this Discussion