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 '<center><font color="e;red"e;><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="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"><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 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']) && $_GETї'photo_filename']!='') {
if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="e;red"e;><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']; ?&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 '<center><font color="e;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 '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" 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!</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']; ?>">[/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><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="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']; ?&hp]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 '<center><font color="e;red"e;><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']; ?&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><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=&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 '<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 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 '<center><font color="e;red"e;><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_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 '<center><font color="e;red"e;><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']; ?>">
?
Cheer1111;'type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="e;red"e;><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 '<center><font color="red"e;><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&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"><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="e;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 '<center><font color="e;red"e;><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']; ?>">[/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><font color="e;red"e;><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" 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><font color="e;red"e;><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="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><font color="e;red"e;><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']; ?>">
GET['photo_filename']!='') {
if (!array_key_exists($photos_uploaded['type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="e;red"e;><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="&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></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 tooto_filename']) && $_GET['photo_filename']!='') {
if (!array_key_exists($photos_uploadedї'type'], $known_photo_types)) {
require 'preupload.php';
echo '<center><font color="e;red"e;><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_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 '<center><font color="e;red"e;><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() 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