25 comments found

  • Bought between 50 and 99 items
  • Canada
  • Exclusive Author
  • Has been a member for 4-5 years
  • Referred between 1 and 9 users
  • Sold between 1 000 and 5 000 dollars

great job

  • Bought between 1 and 9 items
  • Has been a member for 2-3 years

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

segen

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>
  • Bought between 1 and 9 items
  • Has been a member for 2-3 years

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?

segen

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.

  • Bought between 1 and 9 items
  • Has been a member for 2-3 years

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.

segen

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

  • Bought between 1 and 9 items
  • Has been a member for 2-3 years
sparky98 Purchased

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

segen

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

by
by
by
by
by
by