agron
-
Posts
17 -
Joined
-
Last visited
Posts posted by agron
-
-
My friend specifically wants this script because he thinks it is easy and not confusing for him to run and manage. If you want my opinion about the script I think there are much better scripts out there for online auctions but this is his preference ...lol
Take care,
-
Again you are a lifesaver. Thank you so, so much. :)
-
Anyone? I have a deadline to meet and I would really appreciate anybody's help on this issue
-
I apologize for bumping the topic but I really need to find this as soon as possible. Any idea, anyone, where I can find it?
Thanks
-
I need help to find this script and the company who has developed it. A sample website will be http://www.fasttrackauction.com/. When I google it using this string
I see a lot of websites are using the same script. I just can't find it for the life of me. If someone can direct me to the website where they are selling it, would be wonderfulcgi-bin/mndetails.cgi?Thank you so much in advance,
-
You are a life saver and I really, really wish you all the best my friend! Take care and thank you very, very much!!!!
-
Right now I have:
if ($_FILES['fileupload']['type'] != "image/jpeg") {unlink($_FILES['fileupload']['tmp_name']);
header("Location: fail.html");
exit();
}
and it is working only for "jpeg". I did try your fix but I am getting this error:
Parse error: syntax error, unexpected '}' in /home/..../public_html/form.php on line 46and line 46 is far from the lines I changed
45) } else {46) $fileupload_URL = "No file uploader";
47) }
I just need to add a couple of more extensions, jpg, gif, png that's all
Thanks again,
-
I am probably boring you with all these questions but what do I need to do if I want to have 4 extensions: jpeg, jpg, png, gif?
I did this but it isn't working:
if ($_FILES['fileupload']['type'] != "image/gif" AND $fileupload_Mime_Type != "image/jpeg" AND $fileupload_Mime_Type != "image/png" ) {unlink($_FILES['fileupload']['tmp_name']);
header("Location: fail.html");
exit();
}
-
It looks like it is working now. The only qustion I have is this: How do you fix this piece so that I have a 5 mgb file size limit:
// File Validationif (! empty($_FILES['fileupload']['name'])) {
if ($_FILES['fileupload']['size'] == 0) {
header("Location: fail.html");
exit();
}
Thanks again
-
I think I need serious help on this one bro. I am getting the server error again
-
Now I am getting the "500 Internal Server Error" Here is the code again:
<?php// Receiving variables
@$pfw_ip= $_SERVER['REMOTE_ADDR'];
@$name = addslashes($_POST['name']);
@$companyname = addslashes($_POST['companyname']);
@$address = addslashes($_POST['address']);
@$city = addslashes($_POST['city']);
@$stateprovince = addslashes($_POST['stateprovince']);
@$postalzipcode = addslashes($_POST['postalzipcode']);
@$country = addslashes($_POST['country']);
@$phonenumber = addslashes($_POST['phonenumber']);
@$phonenrextention = addslashes($_POST['phonenrextention']);
@$contactfax = addslashes($_POST['contactfax']);
@$email = addslashes($_POST['email']);
@$services = addslashes($_POST['services']);
@$servicenotinlistdescription = addslashes($_POST['servicenotinlistdescription']);
@$materialtype = addslashes($_POST['materialtype']);
@$materialnotinlistdescription = addslashes($_POST['materialnotinlistdescription']);
@$fileupload_Name = $_FILES['fileupload']['name'];
@$fileupload_Size = $_FILES['fileupload']['size'];
@$fileupload_Temp = $_FILES['fileupload']['tmp_name'];
@$fileupload_Mime_Type = $_FILES['fileupload']['type'];
@$dimensionheight = addslashes($_POST['dimensionheight']);
@$dimensionswidth = addslashes($_POST['dimensionswidth']);
@$dimensionslength = addslashes($_POST['dimensionslength']);
@$dimensionsdia = addslashes($_POST['dimensionsdia']);
@$additionalcomments = addslashes($_POST['additionalcomments']);
function RecursiveMkdir($path)
{
if (!file_exists($path))
{
RecursiveMkdir(dirname($path));
mkdir($path, 0777);
}
}
// Validation
if(!empty($fileupload_Name))
{
if( $fileupload_Size == 0)
{
header("Location: fail.html");
exit;
}
if( $fileupload_Mime_Type != "image/jpeg" )
{
unlink($fileupload_Temp);
header("Location: fail.html");
exit;
}
}
$uploadFile = "uploads/".$fileupload_Name ;
if (!is_dir(dirname($uploadFile)))
{
@RecursiveMkdir(dirname($uploadFile));
}
else
{
@chmod(dirname($uploadFile), 0777);
}
@move_uploaded_file( $fileupload_Temp , $uploadFile);
chmod($uploadFile, 0644);
$fileupload_URL = "http://website.com/uploads/".$fileupload_Name ;
//Sending Email to form owner
$pfw_header = "From: $email\n"
. "Reply-To: $email\n";
$pfw_subject = "Service Request";
$pfw_email_to = "email@website.com";
$pfw_message = "Visitor's IP: $pfw_ip\n"
. "name: $name\n"
. "companyname: $companyname\n"
. "address: $address\n"
. "city: $city\n"
. "stateprovince: $stateprovince\n"
. "postalzipcode: $postalzipcode\n"
. "country: $country\n"
. "phonenumber: $phonenumber\n"
. "phonenrextention: $phonenrextention\n"
. "contactfax: $contactfax\n"
. "email: $email\n"
. "services: $services\n"
. "servicenotinlistdescription: $servicenotinlistdescription\n"
. "materialtype: $materialtype\n"
. "materialnotinlistdescription: $materialnotinlistdescription\n"
. "fileupload: $fileupload_URL\n"
. "dimensionheight: $dimensionheight\n"
. "dimensionswidth: $dimensionswidth\n"
. "dimensionslength: $dimensionslength\n"
. "dimensionsdia: $dimensionsdia\n"
. "additionalcomments: $additionalcomments\n";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
//Sending auto respond Email to visitor
$pfw_header = "From: email@website.com\n"
. "Reply-To: email@webiste.com\n";
$pfw_subject = "Service Request";
$pfw_email_to = "$email";
$pfw_message = "Your request has been received. A representative will review your request and call you back with an estimate.\n"
. "If you have any questions or concern do not hesitate to call our hotline number at: 111-111-1111\n"
. "\n"
. "Thank you for your business\n"
. "\n"
. "Business name";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: success.html");
?>
I do want to thank you a lot for your quick response,
Take care
-
I would like to keep all the other validations like filesize and format, I just don't want it to be mandatory. How can I do that?
-
I have this form in my website with one upload file field. I don't want the upload file function to be mandatory. Here I have included the .php code executing the form. Can anyone tell me what do I need to change in order not to have the upload mandatory. Here is my code:
<?php// Receiving variables
@$pfw_ip= $_SERVER['REMOTE_ADDR'];
@$name = addslashes($_POST['name']);
@$companyname = addslashes($_POST['companyname']);
@$address = addslashes($_POST['address']);
@$city = addslashes($_POST['city']);
@$stateprovince = addslashes($_POST['stateprovince']);
@$postalzipcode = addslashes($_POST['postalzipcode']);
@$country = addslashes($_POST['country']);
@$phonenumber = addslashes($_POST['phonenumber']);
@$phonenrextention = addslashes($_POST['phonenrextention']);
@$contactfax = addslashes($_POST['contactfax']);
@$email = addslashes($_POST['email']);
@$services = addslashes($_POST['services']);
@$servicenotinlistdescription = addslashes($_POST['servicenotinlistdescription']);
@$materialtype = addslashes($_POST['materialtype']);
@$materialnotinlistdescription = addslashes($_POST['materialnotinlistdescription']);
@$fileupload_Name = $_FILES['fileupload']['name'];
@$fileupload_Size = $_FILES['fileupload']['size'];
@$fileupload_Temp = $_FILES['fileupload']['tmp_name'];
@$fileupload_Mime_Type = $_FILES['fileupload']['type'];
@$dimensionheight = addslashes($_POST['dimensionheight']);
@$dimensionswidth = addslashes($_POST['dimensionswidth']);
@$dimensionslength = addslashes($_POST['dimensionslength']);
@$dimensionsdia = addslashes($_POST['dimensionsdia']);
@$additionalcomments = addslashes($_POST['additionalcomments']);
function RecursiveMkdir($path)
{
if (!file_exists($path))
{
RecursiveMkdir(dirname($path));
mkdir($path, 0777);
}
}
// Validation
if( $fileupload_Size == 0)
{
header("Location: fail.html");
exit;
}
if( $fileupload_Size >10000000000)
{
//delete file
unlink($fileupload_Temp);
header("Location: fail.html");
exit;
}
if( $fileupload_Mime_Type != "image/jpeg" )
{
unlink($fileupload_Temp);
header("Location: fail.html");
exit;
}
$uploadFile = "uploads/".$fileupload_Name ;
if (!is_dir(dirname($uploadFile)))
{
@RecursiveMkdir(dirname($uploadFile));
}
else
{
@chmod(dirname($uploadFile), 0777);
}
@move_uploaded_file( $fileupload_Temp , $uploadFile);
chmod($uploadFile, 0644);
$fileupload_URL = "http://website.com/uploads/".$fileupload_Name ;
//Sending Email to form owner
$pfw_header = "From: $email\n"
. "Reply-To: $email\n";
$pfw_subject = "h8";
$pfw_email_to = "email@email.com";
$pfw_message = "Visitor's IP: $pfw_ip\n"
. "name: $name\n"
. "companyname: $companyname\n"
. "address: $address\n"
. "city: $city\n"
. "stateprovince: $stateprovince\n"
. "postalzipcode: $postalzipcode\n"
. "country: $country\n"
. "phonenumber: $phonenumber\n"
. "phonenrextention: $phonenrextention\n"
. "contactfax: $contactfax\n"
. "email: $email\n"
. "services: $services\n"
. "servicenotinlistdescription: $servicenotinlistdescription\n"
. "materialtype: $materialtype\n"
. "materialnotinlistdescription: $materialnotinlistdescription\n"
. "fileupload: $fileupload_URL\n"
. "dimensionheight: $dimensionheight\n"
. "dimensionswidth: $dimensionswidth\n"
. "dimensionslength: $dimensionslength\n"
. "dimensionsdia: $dimensionsdia\n"
. "additionalcomments: $additionalcomments\n";
@mail($pfw_email_to, $pfw_subject ,$pfw_message ,$pfw_header ) ;
header("Location: success.html");
?>
I don't have a lot of .php knowledge so if someone will rewrite the above code and post it, would be really appreciated
Thank you very much in advance,
Wordpress Theme Modification
in Archived Job Offerings
Posted
I have a WordPress template that I have purchased (Volt from Themeforest) and I need help modifying it to fit the business needs.
This is three column magazine website for a candy company. There will be a slide (4 slides) and 2 news sections, a photo gallery and a video section. Videos are just uploaded to YouTube.
I need three colors to dominate throughout the whole website:
Red, Blue and Orange
Red: #df2f1d
Blue: #0a458c
Orange: #fcb81d
Third column on the right side must be reserved for ads only. Flexibility to put ads anywhere in the website if required.
Budget $150
Timeframe 1 week from project approval
Please contact here if you are interested
Thank you,