Missing Variables

Ask about general coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
User avatar
AaaDee
php-forum Active User
php-forum Active User
Posts: 25
Joined: Mon Jun 24, 2002 1:10 am
Location: Huddersfield
Contact:

Fri Jul 12, 2002 12:36 am

Hi, i have an upload file in my news submit page.

If the user decides against adding an attachment, on the next page, it displays warning undefined variable "upload".

How can i stop it displaying this if i dont want to upload anything and submit the page.

it works fine if i add an attachment. but displays and undefined variable error if not.


please help


Cheers very much
User avatar
WiZARD
Moderator
Moderator
Posts: 1240
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Fri Jul 12, 2002 3:36 am

AaaDee wrote:Hi, i have an upload file in my news submit page.

If the user decides against adding an attachment, on the next page, it displays warning undefined variable "upload".

How can i stop it displaying this if i dont want to upload anything and submit the page.

it works fine if i add an attachment. but displays and undefined variable error if not.


please help


Cheers very much
If you lose some variable try to use lobal or search there you loosing variables, maby you set variables at one page and without send this variables at the next page....
"Sex,Drugs and Rock&Roll " replaced at "Sucks,Bugs and Plug&Play";
Image
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 824
Joined: Sun Jun 02, 2002 3:09 am

Fri Jul 12, 2002 7:35 am

ERROR?

try this @

I thinks that WIZARD means under lobal GLOBAL VARIABLES =)
Post Reply