Do you have a good, healthy recipe that you want to share with us and the world? Feel free to use this form to submit your recipes to Battling Obesity

All submissions remain property of Battling Obesity and you will be referenced as the creator of the submitted recipe. If you did not create the recipe, and are just passing it along (with thanks), please acknowledge the source where you did get the recipe from!

If you wish to submit pictures to complement your recipe, please upload them at the bottom of the screen. You must mention at the end of your recipe submission that you are uploading pictures and their names, otherwise all pictures will be deleted upon receipt.



If you use this script you should include a link back to our website
with the link to allow other users to benefit.

This page is designed to be inlcluded within another page therefore html, head
and body tags have not been used. You can include this page into another page by
following the instructions in README.

If you have any problems with this script please post a message in our message
boards at


$serverpath = “/home/obesity/public_html/images/awaitingreview”; // Path to where images should be uploaded to on the server.
$urltoimages = “”; // Web address to where the images are accessible from.
$maxsize = “700000”; // Example – 20000 is the same as 20kb

$mode = $_GET[‘mode’];
if ($mode == “”) { $mode = “form”; }

if ($mode == “form”) {
echo “

echo “\n”;
echo “\n”;

if ($mode == “upload”) {
$file = $_FILES[‘file’][‘name’];
// If you add your own file types don’t forget to add an uppercase version.
$allowedfiles[] = “gif”;
$allowedfiles[] = “jpg”;
$allowedfiles[] = “jpeg”;
$allowedfiles[] = “png”;
$allowedfiles[] = “GIF”;
$allowedfiles[] = “JPG”;
$allowedfiles[] = “JPEG”;
$allowedfiles[] = “PNG”;

if($_FILES[‘file’][‘size’] > $maxsize)
print “File size is too big – please reduce file size and try again.”;
else {
$path = “$serverpath/$file”;
foreach($allowedfiles as $allowedfile) {

if ($done <> “yes”) {
if (file_exists($path)) {
echo “A file with this name already exists – please rename the file and reupload.”;

if (substr($file, -3) == $allowedfile) {
move_uploaded_file($_FILES[‘file’][‘tmp_name’], “$path”);
$done = “yes”;
echo “

Your image has been successfully uploaded to our server and can be accessed using the URL provided below.

echo “


echo “



if ($done <> “yes”) { print “

Error: Your image as not been uploaded because it is not a recognised image file. Please try again.

“; }
echo “

PLEASE Remember to include a notice in your recipe which pictures belong to which recipe and where abouts, for display in our Recipe Category. Thank-You!


(click the “Submit Your Recipe” button from the top menu to REFRESH this page)

Print Friendly, PDF & Email

NOTE: The contents in this blog are for informational purposes only, and should not be construed as medical advice, diagnosis, treatment or a substitute for professional care. Always seek the advice of your physician or other qualified health professional before making changes to any existing treatment or program. Some of the information presented in this blog may already be out of date.