ThemeForest

Bonsai Media

  • Has been a member for 2-3 years
  • Exclusive Author
  • Sold between 100 and 1 000 dollars
  • Bought between 10 and 49 items
  • Canada
  • Referred between 1 and 9 users
mdsn says

great job

Posted 2 years ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
soradesignstudio says
Purchased

Great template, but I need to make the contact form work. Can you send me the php code? Thanks!

Posted 4 months ago
Author
segen segen replied

Here for everyone else too :)

<?php //DONT EDIT BELOW EXCEPT FOR CHANGEING YOUR EMAIL ADRESS AND SUBJECT :) if(isset($_POST['button1'])){ $subject = htmlspecialchars($_POST['subject'], ENT_QUOTES); $lastname = htmlspecialchars($_POST['lastname'], ENT_QUOTES); $mail = htmlspecialchars($_POST['mail'], ENT_QUOTES); $message = htmlspecialchars($_POST['message'], ENT_QUOTES); $emaile = explode('@', $mail); if($emaile[0] != '' && $emaile[1] != ''){ $to = 'youremail@gmail.com'; //CHANGE THE E-MAIL HERE $subj = 'Someone sent me a message'; //subject $headers = 'From: '.$to.'' . "\r\n"; $headers .= 'Reply-To: '.$to.'' . "\r\n"; //$headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $mess = '<htm?><head><title>Contact</title></head><body><p>'; $mess .= '</p><p><b>Contact</b></p><br />'; $mess .= '<b>Title: </b>'.$subject.'<br />'; $mess .= '<b>Name: </b>'.$lastname.'<br />'; $mess .= '<b>E-mail: </b>'.$mail.'<br />'; $mess .= '<b>Message: </b>'.$message.'<br />'; $mess .= '</body>'; $mailsend = mail($to,$subj,$mess, $headers);//Slanje poruke unset($_POST['subject'],$_POST['lastname'],$_POST['mail'],$_POST['message']); }else{ $error = 'Ivalid e-mail. Please try again. Thank you'; } } if (isset($error)) { print '<div>'.$error.'</div>'; } <form method="post" action="" id="two"> <fieldset><a name="contact"></a> <input name="subject" id="subject" value="SUBJECT" type="text" tabindex="1" /> <br /> <input name="lastname" id="lastname" value="NAME" type="text" tabindex="2" /> <br /> <input name="mail" id="mail" value="EMAIL" type="text" tabindex="3" /> <br /> <br /> <textarea name="message" rows="10" cols="40" tabindex="4">MESSAGE </textarea> </fieldset> <p> <input name="button1" id="button1" type="submit" value="Send" /> </p> </form>
Posted 4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
soradesignstudio says
Purchased

Thank you Segen.

I am sorry for my ignorance, but do I have to make a .php file and direct from “action=” to the file? Where should I place the .php file?

Posted 4 months ago
Author
segen segen replied

Place the PHP code above the HTML form (like in my example) inside the .html file, rename index.html to index.php. Don’t touch action method.

Posted 4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
soradesignstudio says
Purchased

The code is not working… am I doing anything wrong?

http://soradesignstudio.com/test/index.php

I am not even sure if I am putting the code in the right place… Sorry to keep bugging you.

Posted 4 months ago
Author
segen segen replied

Nope, you’re not putting it right :( Please contact me via my profile page and we’ll fix this. Thanks!

Posted 4 months ago
  • Has been a member for 0-1 years
  • Bought between 1 and 9 items
sparky98 says
Purchased

im having problem installing the theme. it says theme is broken and stylesheet is missing. how do i install the theme? thanks.

Posted 4 months ago
Author
segen segen replied

Hi sparky98, you bought an hTML template not a WP template so there isn’t any installation required.

Posted 4 months ago

You must sign in or sign up to purchase this item.

$20Regular Licence

$20

Regular Licence a website (commercial, personal, client), or intranet site project - Details

$1000Extended Licence

$1000

Extended Licence a template for a Web Service such as WPMU, or as part of a Software Package for sale - Details

85 Purchases 25 Comments

Buyer Rating
12345 ( 23 ratings )
segen

segen

  • Has been a member for 3-4 years
  • Won a Competition
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
  • Author had a File in an Envato Bundle
  • Exclusive Author
  • Sold between 50 000 and 100 000 dollars
  • Bought between 10 and 49 items
  • Croatia
  • Referred between 50 and 99 users
View Portfolio
Created 9 September 08
Compatible Browsers FireFox 2, FireFox 3, IE6, IE7, Safari
Documentation Well Documented
by
by
by
by
by