- 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
great job
great job
Great template, but I need to make the contact form work. Can you send me the php code? Thanks!
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?
The code is not working… am I doing anything wrong?
http://soradesignstudio.com/test/index.phpI am not even sure if I am putting the code in the right place… Sorry to keep bugging you.
im having problem installing the theme. it says theme is broken and stylesheet is missing. how do i install the theme? thanks.
COPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.
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>