Are you having problems where your server’s information is showing in the “From” line and you want to show your customer’s email address (or the person who filled out your online form) instead? Your original code may look like this below…
Original code:
$name = stripslashes($_POST[‘name’]);
$email = trim($_POST[’email’]);
$subject = stripslashes($_POST[‘subject’]);
$message = stripslashes($_POST[‘message’]);
$phone = stripslashes($_POST[‘phone’]);
$answer = trim($_POST[‘answer’]);
$to=$toemail.’,’.$replyto;
$error = ”;
$headers=””;
$headers.=”Reply-to:$replyto\n”;
$headers .= “From: $email\n”;
$headers = ‘MIME-Version: 1.0’ . “\r\n”;
$headers = “Content-Type: text/html; charset=iso-8859-1\n”.$headers;
Now revise your code to the following:
Revised Code:
$name = stripslashes($_POST[‘name’]);
$email = trim($_POST[’email’]);
$subject = stripslashes($_POST[‘subject’]);
$message = nl2br($_POST[‘message’]);
$phone = stripslashes($_POST[‘phone’]);
$answer = trim($_POST[‘answer’]);
$from=$email;
$to=$replyto;
$error = ”;
$headers= “From: $name $headers.= “Reply-to:” . $email . “\n”;
$headers .= ‘MIME-Version: 1.0’ . “\r\n”;
$headers = “Content-Type: text/html; charset=iso-8859-1\n”.$headers;
The items the were updated:
- $message in order to have the message text properly shown.
- Updated “From” line.
- Updated the “Reply-to” line in order to reply to the person who filled the contact form and not ourselves.
- Added a ”.” in the line of the MIME in order to send the mail with the mail of person who filled the contact form
I hope it helped people who use this awesome and easy script. If I made some mistakes in those modification don’t hesitate to correct me (I’m not a php dev.).
Every webmaster wants his website to look good; there are a number of great graphic designing firms which provide the finest service. Nowadays a lot of work goes into making a website look good so if you want to get good results then you need to hire professionals. The graphic designing team over at Aliante Web Services is simply the best. If you have ever worked with a graphic designing team before, you will notice the difference between a mediocre graphic designing company and Aliante Web Design. Nowadays, in order to draw the attention of the customer, a website must have great graphics or else it will fail to stand up to the competition. The best graphic designers in Las Vegas are employed by Aliante Graphic Design and they help people make their business models successful.
There are a lot of great graphic designing firms out there but only a very few can actually vouch for satisfaction. Aliante web design is one of those companies that provide a personalized approach to every consumer’s needs. In this graphic designing company, you will be able to get the expertise of some of the biggest talents in the industry and work with them. If you want your website to become more successful and draw more traffic then here is your big opportunity. The Aliante Web Design Company has made sure that every website owner gets what he/she exactly wants.
There are numerous packages to choose from and you will really love the customer service provided by this amazing firm. The Las Vegas graphic design firms like Aliante Web Design have been forefront of the web revolution for quite some time now and they know the pulse of the industry. If you are new in this field and want what’s best for your company then the creative graphic designing team over at Aliante Web Design will help you take the right course of action.
In this market of cut-throat competition you need to stay on the edge of your toes at all time, unless you change yourself according to the industry, you will perish. So get in touch with the graphic designers over at Aliante Web design and they will help you out in redesigning your website. Nowadays a good looking merchandise website can bring in a lot of customers. The websites designed by Aliante Web Design are very beautiful but at the same time they are not heavy on the resources. This means that shoppers can marvel at the nice aesthetic s of your website even if they have a slow internet connection.
So if you want to get rid of the competition stop following the same old beaten track and contact the Aliante Web Design Firm right away. The Aliante Graphics designing team can help you with logo development and build the identity of your brand. With a good looking logo, you can enhance the awareness around your brand. The sky is the limit when you hire Aliante Web Design firm for your graphic redesigning requirements.
There is no point in building a website unless there are visitors coming in. A major source of traffic for most sites on the Internet is search engines like Google, Yahoo!, MSN, Altavista and so on. Hence, by designing a search engine friendly site, you will be able to rank easily in search engines and obtain more visitors.
Major search engines use programs called crawlers or robots to index websites to list on their search result pages. They follow links to a page, reads the content of the page and record it in their own database, pulling up the listing as people search for it.
If you want to make your site indexed easily, you should avoid using frames on your website. Frames will only confuse search engine robots and they might even abandon your site because of that. Moreover, frames make it difficult for users to bookmark a specific page on your site without using long, complicated scripts.
Do not present important information in Flash movies or in images. Search engine robots can only read text on your source code so if you present important words in Flash movies and images rather than textual form, your search engine ranking will be affected dramatically.
Use meta tags accordingly on each and every page of your site so that search engine robots know at first glance what that particular page is about and whether or not to index it. By using meta tags, you are making the search engine robot’s job easier so they will crawl and index your site more frequently.
Stop using wrong HTML tags like <font> to style your page. Use CSS (Cascading Style Sheets) instead because they are more effective and efficient. By using CSS, you can eliminate redundant HTML tags and make your pages much lighter and faster to load.
Your website is where your business resides — it’s like the headquarter of an offline company. Hence, it is important to practise good design principles to make sure your site reaches out to the maximum number of visitors and sells to as many people as possible.
Make sure you have clear directions on the navigation of your website. The navigation menu should be uncluttered and concise so that visitors know how to navigate around your website without confusion.
Reduce the number of images on your website. They make your site load very slowly and more often than not they are very unnecessary. If you think any image is essential on your site, make sure you optimize them using image editing programs so that they have a minimum file size.
Keep your text paragraphs at a reasonable length. If a paragraph is too long, you should split it into seperate paragraphs so that the text blocks will not be too big. This is important because a block of text that is too large will deter visitors from reading your content.
Make sure your website complies to web standards at www.w3.org and make sure they are cross-browser compatible. If your website looks great in Internet Explorer but breaks horribly in Firefox and Opera, you will lose out on a lot of prospective visitors.
Avoid using scripting languages on your site unless it is absolutely necessary. Use scripting languages to handle or manipulate data, not to create visual effects on your website. Heavy scripts will slow down the loading time of your site and even crash some browsers. Also, scripts are not supported across all browsers, so some visitors might miss important information because of that.
Use CSS to style your page content because they save alot of work by styling all elements on your website in one go.
When it comes to your website, extra attention should be paid to every minute detail to make sure it performs optimally to serve its purpose. Here are five important rules of thumb to observe to make sure your website performs well.
1) Do not use splash pages
Splash pages are the first pages you see when you arrive at a website. They normally have a very beautiful image with words like “welcome” or “click here to enter”. In fact, they are just that — pretty vases with no real purpose. Do not let your visitors have a reason to click on the “back” button! Give them the value of your site up front without the splash page.
2) Do not use excessive banner advertisements
Even the least net savvy people have trained themselves to ignore banner advertisements so you will be wasting valuable website real estate. Instead, provide more valueable content and weave relevant affiliate links into your content, and let your visitors feel that they want to buy instead of being pushed to buy.
3) Have a simple and clear navigation
You have to provide a simple and very straightforward navigation menu so that even a young child will know how to use it. Stay away from complicated Flash based menus or multi-tiered dropdown menus. If your visitors don’t know how to navigate, they will leave your site.
4) Have a clear indication of where the user is
When visitors are deeply engrossed in browsing your site, you will want to make sure they know which part of the site they are in at that moment. That way, they will be able to browse relevant information or navigate to any section of the site easily. Don’t confuse your visitors because confusion means “abandon ship”!
5) Avoid using audio on your site
If your visitor is going to stay a long time at your site, reading your content, you will want to make sure they’re not annoyed by some audio looping on and on on your website. If you insist on adding audio, make sure they have some control over it — volume or muting controls would work fine.