DNforum.com - Domain Sales, Domain Forum, Domain Appraisals
 
Register Now! Welcome to Dnforum.com You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast and simple so please, join our community today! If you have any problems with the registration process or your account login, please contact us.
Go Back   DNForum - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars > Content Development > Website Development and Design Discussion > Coding/Programming/Languages
Reply
 
LinkBack Thread Tools Display Modes
Old 12-26-2006, 02:39 AM   #1 (permalink)
Platinum Lifetime Member
 
Last Online: Yesterday 08:37 PM
iTrader: (33)
Join Date: Dec 2005
Posts: 734
DNF$: 4,810


Contact us form, utf-8 and php??

Im trying to build a contact us form and have gotten this far:
(Courtesy of Google!)

Anybody know what I have to do to this bit of code to make it send me the email in a variety of languages (Including English)
I am lost when it comes to php so if someone knows can you show me what I have to do?

<?php
if(isset($_POST['submit'])) {

$to = "xxxxxx@domainname.com";
$subject = "Submissions";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message = $_POST['message'];

$body = "From: $name_field\n E-Mail: $email_field\n Message:\n $message";

mail($to, $subject, $body);

} else {

echo "blarg!";

}
?>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

This is the form Im trying to use, but if I enter languages other than English the email I recieve is a random (to me anyway!) string of characters and is unreadable.



<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-utf-8">
<title>Name</title>
</head>

<body>
<form method="POST" action="mailer.php">
<p align="center">Name:
<input type="text" name="name" size="19"><br>
<br>
Email:
<input type="text" name="email" size="19"></p>
<p align="center">Comments:<br>
<br>
<textarea rows="9" name="message" cols="30"></textarea>
<br>
<br>
<input type="submit" value="Submit" name="submit">
</p>
</form>

</body>

</html>

Any help is appreciated, thanks
mulligan is offline   Reply With Quote
Old 06-05-2007, 12:12 AM   #2 (permalink)
SouthernVista.com
 
domainoffers.biz's Avatar
 
Name: Pemuda Liong Wi Potuan
Last Online: 06-26-2008 04:19 AM
iTrader: (0)
Join Date: Apr 2006
Posts: 259
DNF$: 4,085
Location: Anywhere
Country:


Re: Contact us form, utf-8 and php??

PM me Please, I have a nice contact us form in php code, it is a free script, and i will send you the nice contact us form of php code, it verify the neccessary fields as what you want, by modifying a little,
the default verify fields for validation are : Name, Email, Subject, and The body of message.
I will send you the nice free script to you freely.
Have a nice contact us form.
__________________
Interested in Trading Jakarta Stock Exchange (jsx.co.id) in real time ? Please visit : http://www.brokersaham.com (etrading.co.id) ; the member of JSX with broker code : YP.
domainoffers.biz is offline   Reply With Quote
Old 06-05-2007, 04:46 AM   #3 (permalink)
Cyberspace warrior
 
sdsinc's Avatar
 
Name: Kate
Last Online: Today 05:14 PM
iTrader: (28)
Join Date: Jul 2005
Posts: 2,753
DNF$: 11,087
Location: Wonderland
Country:


Re: Contact us form, utf-8 and php??

Actually you need to add a header and set the character set to UTF-8 otherwise it will use a default like US encoding. I would recommend using classes like phpmailer and this will simplify the job.
Feel free to PM if you need help.
__________________

ShopNames.com - Quality domain names at discount rates

PM me for a SedoPro endorsement code

Last edited by sdsinc; 06-05-2007 at 04:47 AM. Reason: typo
sdsinc is online now   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
In need of a PHP contact/questionnaire form and MySQL db connction DropDepot Help Wanted! 1 07-21-2006 02:13 AM
All 8 Sites For Only $600.00 - Today Only! hiphopminute.com, reallypopular.com, ++ mykel241 Developed Websites for Sale 0 04-22-2006 09:21 PM
Script modification PHP / MYSQL DaveRH Help Wanted! 0 07-05-2005 11:34 AM


All times are GMT -4. The time now is 05:18 PM.
Copyright @2001-2008 DNForum.com

Learn Domains
Promote Domains
Research Domains
Buy Domains
Resell Domains
Park Domains
Sell Domains
Build Domains
Host Domains
Trademark Domains
Domain Domains
manage Domains
Appraise Domains