Missing Variables

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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

Missing Variables

Postby AaaDee » 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: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol
Contact:

Re: Missing Variables

Postby WiZARD » 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....

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am

Postby Oleg Butuzov » Fri Jul 12, 2002 7:35 am

ERROR?

try this @

I thinks that WIZARD means under lobal GLOBAL VARIABLES =)


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 6 guests