582 comments found

I don’t Have PayPal account and i am trying to buy this template from few days with my debit card (which is VISA verified international shopping card) but i get this message “The card you entered cannot be used for this payment. Please enter a different debit or credit card number.” I am keenly interested in this template but i could not go for it because of payment issues.

Vasterad

Hi, unfortunately I’m afraid I can’t help in this matter because I don’t receive payments. It’s Envato’s role

Hello Vasterad,

I recently emailed you in regards to my contact.php issue. Ihave added additional fields but receiving an ‘Sorry, unexpected error. Please try again later’ error when posting.

My form can be viewed at http://www.elumanation.com/contact5.html

My php code is as follows…

<?php //Retrieve form data. //GET - user submitted data using AJAX //POST - in case user does not support javascript, we'll use POST instead $name = ($_GET['name']) ? $_GET['name'] : $_POST['name']; $company = ($_GET['company']) ? $_GET['company'] : $_POST['company']; $email = ($_GET['email']) ?$_GET['email'] : $_POST['email']; $phonenumber = ($_GET['phonenumber']) ?$_GET['phonenumber'] : $_POST['phonenumber']; $message = ($_GET['message']) ?$_GET['message'] : $_POST['message']; //flag to indicate which method it uses. If POST set it to 1 if ($_POST) $post=1; //Simple server side validation for POST data, of course, you should validate the email if (!$name) $errors[count($errors)] = 'Please enter your name.'; if (!$company) $errors[count($errors)] = 'Please enter your company.'; if (!$email) $errors[count($errors)] = 'Please enter your email.'; if (!$phonenumber) $errors[count($errors)] = 'Please enter your phone number.'; if (!$message) $errors[count($errors)] = 'Please enter your message.'; //If the errors array is empty, send the mail if (!$errors) { // ====== Your mail here ====== // $to = 'Elumanation <info@elumanation.com>'; // Sender $from = $name . ' <' . $email . '>'; //subject and the html message $subject = 'Elumanation LED Lighting Solutions'; $message = ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head></head> <table> <tr><td>Name:</td><td>' . $name . '</td></tr> <tr><td>Company:</td><td>' . $company . '</td></tr> <tr><td>Email:</td><td>' . $email . '</td></tr> <tr><td>Phone Number:</td><td>' . $phonenumber . '</td></tr> <tr><td>Message:</td><td>' . nl2br($message) . '</td></tr> </table> '; // Send the mail $result = sendmail($to, $subject, $message, $from); //if POST was used, display the message straight away if ($_POST) { if ($result) echo 'Thank you! We have received your message.'; else echo 'Sorry, unexpected error. Please try again later'; //else if GET was used, return the boolean value so that //ajax script can react accordingly //1 means success, 0 means failed } else { echo $result; } // If the errors array has values } else {} // Simple mail function with HTML header function sendmail($to, $subject, $message, $from) { $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= 'From: ' . $from . "\r\n"; $result = mail($to,$subject,$message,$headers); if ($result) return 1; else return 0; } ?>

Please advise as I require these two extra fields.

Thank you in advance.

Jamen

Default-user

I am now using your non customized cotnact form and I am still receiving the same error. Please advise to why this might be?

www.elumanation.com/contact2.html

contact.php code as follows.

<?php //Retrieve form data. //GET - user submitted data using AJAX //POST - in case user does not support javascript, we'll use POST instead $name = ($_GET['name']) ? $_GET['name'] : $_POST['name']; $email = ($_GET['email']) ?$_GET['email'] : $_POST['email']; $message = ($_GET['message']) ?$_GET['message'] : $_POST['message']; //flag to indicate which method it uses. If POST set it to 1 if ($_POST) $post=1; //Simple server side validation for POST data, of course, you should validate the email if (!$name) $errors[count($errors)] = 'Please enter your name.'; if (!$email) $errors[count($errors)] = 'Please enter your email.'; if (!$message) $errors[count($errors)] = 'Please enter your message.'; //If the errors array is empty, send the mail if (!$errors) { // ====== Your mail here ====== // $to = 'Your Name <info@elumanation.com>'; // Sender $from = $name . ' <' . $email . '>'; //subject and the html message $subject = 'Message from your website'; $message = ' <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head></head> <table> <tr><td>Name:</td><td>' . $name . '</td></tr> <tr><td>Email:</td><td>' . $email . '</td></tr> <tr><td>Message:</td><td>' . nl2br($message) . '</td></tr> </table> '; // Send the mail $result = sendmail($to, $subject, $message, $from); //if POST was used, display the message straight away if ($_POST) { if ($result) echo 'Thank you! We have received your message.'; else echo 'Sorry, unexpected error. Please try again later'; //else if GET was used, return the boolean value so that //ajax script can react accordingly //1 means success, 0 means failed } else { echo $result; } // If the errors array has values } else {} // Simple mail function with HTML header function sendmail($to, $subject, $message, $from) { $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n"; $headers .= 'From: ' . $from . "\r\n"; $result = mail($to,$subject,$message,$headers); if ($result) return 1; else return 0; } ?>
Default-user

I believe this issue is in the custom.js however I never altered that file. Please advise why? Its returning the error code from the custom.js file not the php file

Vasterad

Could you provide a link to your site?

by
by
by
by
by
by