473,394 Members | 1,870 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

teach me, please!

I'm a begginer
using IIS(win2000server)+PHP+MySQL, I make very simple codes, one html and
three php files

communiace.html
connect.php
read.php
write.php

and I pass the variables within codes by form with "method=post" .

when I connect my server, http://localhost/communicate.html and give any
values to variables.
Error messages apear!
"Notice: Undefined variable: name in E:\2003DATA\webtxt\exercise\¾²±â.php on
line 14"

why this message apears !

please tell me the cause!
Jul 16 '05 #1
1 2043
> "Notice: Undefined variable: name in
E:\2003DATA\webtxt\exercise\¾²±â.php on line 14"


This means that in your code you were using a variable called name (on line
14 of your code) which does not exist, e.g.:

if ($name) // first time that $name appears!
{
// do something with $name
}
else
{
// Initialize the variable $name with some value
$name = "Some value";
}

Here, the if-line should trigger the "Undefined variable" notice. This does
not necessarily mean that there is something wrong. It is just a "reminder".
You can deliberately use an undefined variable, for instance when you test
if it exists or not. But it is always a good idea to assign a value to each
variable explicitly before using it in your code. For example, you could put
the line

$name=NULL;

before the above if-line. The reason is that some evil hacker could easily
send a variable $name with a value of his own choice to your script. See the
PHP doc for details (security section).

Greetings, Thomas

Jul 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: reynArd | last post by:
"I can teach anyone how to get what they want out of life. The problem is I can't find anybody who can tell me what they want." -- Mark Twain "Today people in America can become whatever they want....
0
by: reynArd | last post by:
"I can teach anyone how to get what they want out of life. The problem is I can't find anybody who can tell me what they want." -- Mark Twain "Today people in America can become whatever they want....
2
by: Bret Busby | last post by:
In searching on the Internet, I found various references to the book "Teach Yourself PostgreSQL In 21 Days", written by Chris Smith, published by SAMS, December 2002 (from the Barnes and Noble web...
33
by: Jacob Oost | last post by:
Should I get some more general books, like "advanced self-teaching," or can I start on specialized books like "Linux game programming?" Any book recommendations? -- ----- BEGIN GEEK CODE...
11
by: efrat | last post by:
Hello, I'm planning to use Python in order to teach a DSA (data structures and algorithms) course in an academic institute. If you could help out with the following questions, I'd sure...
4
by: javaalien | last post by:
I have downloaded and bookmark the API documentation... Kindly please anybody teach on how to read/use them... for instance I browse Package java.io - then I check File. There are Field Summary,...
25
by: vikram Bhuskute | last post by:
I have plans to train some students for C in coming weeks. I am badly looking for C programming assignments fot them. Need 1) lots of them per topiic 2) Should be doable for beginners thanks...
1
by: chougule.sagar1 | last post by:
please c,c++ to teach & forwardto notes
41
by: none | last post by:
Hello, IIRC, I once saw an explanation how Python doesn't have "variables" in the sense that, say, C does, and instead has bindings from names to objects. Does anyone have a link? Thanks, ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.