Computing.Net > Forums > Web Development > php error

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

php error

Reply to Message Icon

Name: tyros
Date: December 14, 2004 at 13:56:45 Pacific
OS: xp
CPU/Ram: 256mb
Comment:

i want to know whats my error in that

if($title != "" && $url != "" && $email != "" && $banner != "") //fields must not be blank

cause im getting this error :

Notice: Undefined variable: title in c:\inetpub\wwwroot\script\newuser.php on line 47




Sponsored Link
Ads by Google

Response Number 1
Name: Khalid
Date: December 14, 2004 at 14:10:11 Pacific
Reply:

Apparently the if-statement is testing a variable that hasnt been created: $title
The error isnt fatal (it is a notice, as you can see); that means that the script continues running.


0

Response Number 2
Name: FBI Agent
Date: December 19, 2004 at 20:34:47 Pacific
Reply:

go like this.

if (!$title) {$title = "";};

do that for all of the variables and then you wont get the error

FBI Agent

AIM: EliteAssassin187


0

Response Number 3
Name: Khalid
Date: December 19, 2004 at 23:30:21 Pacific
Reply:

That will still give a notice since $title cannot be tested to see if it there (because it isnt)... ;-)

if (isset($title)) { ... }

will never give an error or notice...


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Playing MP3 music on webs... Live Chat in Ebay Auction...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: php error

PHP error www.computing.net/answers/webdevel/php-error/2515.html

$PATH php error www.computing.net/answers/webdevel/path-php-error/294.html

PHP error message www.computing.net/answers/webdevel/php-error-message/584.html