Page 1 of 1

isset() around another if statement

Posted: Fri Jul 15, 2005 12:03 am
by Jim_Bo
Hi,

Whats the correct way to acheive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheerswing?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red">&lET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b>&lts($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b&
if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheersorrect way to acheive the following?

Code: Select all

if (isset($_GET&#1111;'photo_filename'])) {

if (!array_key_exists($photos_uploaded&#1111;'type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&orrect way to acheive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
CheersGET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheersme'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;><b>File is not a photo!</b></font></center>

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheersequire 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font&gt;&lt;/center&amamp;gt;File is not a photo!</b></font></center><br>';
return;
}
}

Cheers acheive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheersamp;lt;center><font color="red"><b>File is not a photo!</b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}[/php: photo!</b></font></center><br>';
return;
}
}

Cheerspload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center>><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheersorrect way to acheive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheersont></center><br>';
return;
}
}

Cheerslowing?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br&ypes)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheersollowing?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center>&am                
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheers'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}[/php:1:0gt;</center><br>';
return;
}
}

Cheersmp;lt;b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheersilename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheerscheive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheerso!</b></font></center><br>';
return;
}
}

Cheersorrect way to acheive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center&gre 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font>&a25571c0]if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheer_photo_types)) {

require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Cheersorrect way to acheive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!&amps)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheers['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Cheersmp;lt;/b></font></center><br>';
return;
}
}

Cheersown_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheersorrect way to acheive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded&#1111;'type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
	return;
 }	
}sset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font><e following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheersmp;amp;gt;</center><br>';
return;
}
}

Cheersype'], $known_photo_types)) {

require 'preupload.php';
echo '<center>&lt;font color=&quote;red&quote;&gt;&lt;b&gt; (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheerslowing?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheers$known_photo_types)) {

require 'preupload.php';
echo '<center>&lt;font color=&quote;red&quote;&gt;&am;'photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red">&lt;b&gt;File is not a photo!</b></font></center><br>';
return;
}
}

Cheersmp;lt;/font></center><br>';
return;
}
}

Cheerst;File is not a photo!</b></font></center><br>';
rists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheersn_photo_types)) {

require 'preupload.php';
echo '<center>&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Cheersfilename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&
if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheers (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center&ahp]if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheers_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
amp;lt;/b></font></center><br>';
return;
}
}

Cheers (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '&lt;center&gt;&lt;font color="red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Cheerse25571c0]if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheersamp;quote;red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Cheerseive the following?

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheers echo '<center><font color="red">&

Code: Select all

if (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font>&ampif (isset($_GET['photo_filename'])) {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Cheers

Posted: Fri Jul 15, 2005 12:09 am
by harrisonad
well, what do you want to achieve?

Posted: Fri Jul 15, 2005 12:12 am
by Jim_Bo
Hi,

well the following works:

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers93b6]if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;ded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font></center><br&uire 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></fonypes)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersllowing works:

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .llowing works:

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersheersaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersown_photo_types)) {

require 'preupload.php';
echo '<center>&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b></font></center><br>';
return;
}

But (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheerslt;center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data,/font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers:

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersp;quote;><b>File is not a photo!</b></font></center>&lt;br&gt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with thp;lt;/center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersp;amp;gt;<font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But Imp;lt;b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersontinue with the script ..

Cheersllowing works:

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersgt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers1393b6]if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers721393b6]if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I ont color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheerser><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains drn;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers;amp;lt;/font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers, $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers/center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersllowing works:

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, heenter><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}[/_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheer
echo '<center>&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersllowing works:

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }[/php:1:30721echo '<center><font color="red"><b>File is not a photo!</b></font></center&gt;&lt;br&gt;';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers';
echo '<center><font color="red"><b>File is not a photo!</b></font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersipt ..

Cheersamp;gt;<br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersllowing works:

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue wos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers
echo '<center><font color="red"><b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;'s)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers1393b6]if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers
echo '&lt;center&gt;&lt;font color=&quote;red">&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&1;'type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b&gt;&lt;/font&gt;&lt;/center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersamp;gt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers;amp;gt;</center><br>';
return;
}

But I only want to check against theequire 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers
echo '<center><font color="red">&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}

But I only want to check aypes)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheershotos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}, $known_photo_types)) {

require 'preupload.php';
echo '&lt;center&gt;<font color="red"><b>File is not a photo!&lt;/b&gt;&lt;/font&gt;&am'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field nter><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheershotos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!</b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersy_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheersnot a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers

Code: Select all

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
    
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }
But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheerse;red"><b>File is not a photo!</b>&amif (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {

require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}

But I only want to check against the field if it contains data, hence the isset() .. otherwise if empty continue with the script ..

Cheers

Posted: Fri Jul 15, 2005 12:15 am
by harrisonad
seems fine to me.
why? is there any error occured while executing this script?

Posted: Fri Jul 15, 2005 12:18 am
by harrisonad
using isset($_GET['photo_filename']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
f your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET[hoto_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
[/php:1:cesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
'photo_filename']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET&#1111;'photo_filename']) &amp;&a'photo_filename']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
at if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
uery string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
so return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
]me']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
et($_GET['photo_filename']) && $_GET['photo_filename']!=''){
ue.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
name']) && $_GET['photo_filename']!=''){
'photo_filename']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET&#1111;'photo_filename']) &amp;&a', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
ls if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
rn true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
{
ut what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
'photo_filename']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) &aeturn true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
[/php;size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET&#1111;'photo_filename']) &amp;&amp; $_GET&#1111;'photo_filename']!=''){
'photo_filename']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['phothen it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
hoto_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
amp;size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
'photo_filename']) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET&#1111;'photo_filename']) &amp;&amp; $_GET&#1111;'photo_filenamemp;amp;photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
name=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) &a't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
mp;amp;size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_fileename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
88af], such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
p;size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(issesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
'&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
y string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
'&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
g contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
mp;amp; $_GET['photo_filename']!=''){
) only tells if your query string contains '&photo_filename=' but what if it doesn't have a value, such as '&photo_filename=&size=34', then it will also return true.
use this instead

Code: Select all

if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){
if(isset($_GET['photo_filename']) && $_GET['photo_filename']!=''){

Posted: Fri Jul 15, 2005 12:28 am
by Jim_Bo
Hi,

using:

Code: Select all

if (isset($_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

CheersT['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="fi& $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. i
if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red">&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input nfilename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word dphp]if (isset($_GET['photo_filename']) &amp;&amp; $_GETї'photo_filename']!='') {

if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?&php]if (isset($_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheershe post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers;& $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file c111;'photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red"><b>File is not a photo!</b></font></center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do 'photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" va_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_fi<b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an erb10]if (isset($_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers
echo '<center><font color="red"><b>File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">[/php:1:cf4;File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="filenter><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as yif there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?&amphp]if (isset($_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the</font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

CheersGET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?&pe'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers$_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name=&a';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. th) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST[/font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to ;amp;gt;<b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the ET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers0]if (isset($_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;<font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. tphp]if (isset($_GET['photo_filename']) && $_GETї'photo_filename']!='') {

if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filenes)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data andname']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheer1111;'type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheersphp]if (isset($_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box&am], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post dasts($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red">&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

&lt;input name=&quote;photo_filen(data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_fa photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheersd['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheersphp]if (isset($_GET['photo_filename']) && $_GETї'photo_filename']!='') {

if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">[/phpamp;& $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you et($_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheersamp;lt;/font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checkos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" cename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

CheersGET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if aded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="amp; $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers;amp;gt;</font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" tylt;b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the #1111;'type'], $known_photo_types)) {
require 'preupload.php';
echo '<center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;&lt;font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="&lfilename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form emp;amp;& $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font>&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it tooto_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_fi_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
	require 'preupload.php';                            
	echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file itype'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="&am not a photo!</b></font></center><br>';
	return;
 }	
}
Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheersmp;amp;& $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '&lt;center&gt;<font color=&quote;red&quote;&gt;&lt;b&gt;File is not a photo!&lt;/b&gt;&lt;/font&gt;&lt;/center&gt;&lt;br&gt;';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() arounename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheerst;font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the ifif (isset($_GET['photo_filename']) && $_GET['photo_filename']!='') {

if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="red"><b>File is not a photo!</b></font></center><br>';
return;
}
}

Lets it go thrugh if there is no path (data) in the file field which is good, but now if I add a file ie a word doc, it submits the form even tho its not a legit file ie gif or jpg?

without the if isset() around it .. the file checking all works fine ..?


How do you get it to grab the post data and echo the value back in to a file field after it reloads from an error as you can a text field .. ie:

Code: Select all

<input name="photo_filename" type="file" class="input-box" value="<?php echo $_REQUEST['photo_filename']; ?>">
?

Cheers

Posted: Fri Jul 15, 2005 4:35 pm
by Jim_Bo
Hi,

Any ideas why once issset() is placed around the photo file extension check it fails to check it, if taken away it checks for allowed file types fine?

Cheers

Posted: Fri Jul 15, 2005 4:48 pm
by theda
Does your server support $_GET? Because quite possibly you have an outdated version of PHP if $_GET won't work.

Posted: Fri Jul 15, 2005 5:54 pm
by Jim_Bo
Hi,

Yes $_GET, $_POST $_REQUEST etc etc all work fine.

Cheers