Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Missing Variables

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

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
AaaDee
New php-forum User
New php-forum User
 
Posts: 25
Joined: Mon Jun 24, 2002 1:10 am
Location: Huddersfield

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
WiZARD
Moderator
Moderator
 
Posts: 1257
Joined: Thu Jun 20, 2002 10:14 pm
Location: Ukraine, Crimea, Simferopol

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

ERROR?

try this @

I thinks that WIZARD means under lobal GLOBAL VARIABLES =)
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 3 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron