Question about undefined index.

I am trying a new php script, and I do not have any errors in the code( well at least it does not show up in Dream Weaver). I test it out on my wamp and I get the message “undefined index: word1 in C:\wamp\www\test\jumble.php on line 40.” Like I said before I did not receive any errors in the code in DW, so does this have something to do with the server or would this be a problem in the code that has not shown itself?

yes there is problem with your code.
Dreamweaver is good for designing but not for programming therefore don’t feel confident because Dreamweaver don’t show any errors.

undefined index means that the script was referring to a variable that has yet been declared or does not exist.

Thanks for you help Wilson,

 I went back and was looking for errors, and seen that I had curvy braces where they wasn't suppose to be and had a couple of  misplaced semicolons. It's working now, and I wanted to say thanks to phphelp and the wonderful people here. I have been to other forums and they make you look like a fool if you ask questions. I really like this site. People can learn a lot from this site and eventually be able to help others.

glad that is working now

i totally agree with you

Sponsor our Newsletter | Privacy Policy | Terms of Service