Hi there guys!
I totally give up on the little problem I have so I came here to actually beg for help.
I have a pretty long form ⦠almost endless š.
I am pretty sure my code is written correct (but then again you never know).
:xbones:
OK ⦠basically I used almost all the time same structure whenever I need to build a form. But this time something is wrong. I have checked it for errors so many times and I still believe the code is correct. If I use the echo thing my results are as it should. But once I get it in the mail, I get: "!"after some letters inside a word or after a word, spaces here and there (in the middle of words) and some bold things that should not be bold. That was what made me thing I was writing the html wrong so I checked it again and looks like the html code is as it should (or so I think).
Now ⦠funny part here š ⦠the errors are not always in the same place š ⦠! If I send a new eMail, there is a pretty big chance the errors are going to be in some other places. So ⦠Iām pretty confused. Please help š ā¦
Here is the code (pretty long ... ):
<?php
$businessName = $_POST['businessName'];
$name = $_POST['name'];
$title = $_POST['title'];
$address = $_POST['address'];
$city = $_POST['city'];
$postalCode = $_POST['postalCode'];
$telephone = $_POST['telephone'];
$fax = $_POST['fax'];
$eMail = $_POST['eMail'];
$reDesignWS = $_POST['reDesignWS'];
$newWS = $_POST['newWS'];
$dueDate = $_POST['dueDate'];
$webAddress = $_POST['webAddress'];
$reDesignL = $_POST['reDesignL'];
$newL = $_POST['newL'];
$logoDescription = $_POST['logoDescription'];
$presentOnWS = $_POST['presentOnWS'];
$emphasizeOnWS = $_POST['emphasizeOnWS'];
$ageGroup = $_POST['ageGroup'];
$WScode = $_POST['WScode'];
$WSsize = $_POST['WSsize'];
$WSresolution = $_POST['WSresolution'];
$scrolling = $_POST['scrolling'];
$img = $_POST['img'];
$imgType = $_POST['imgType'];
$content = $_POST['content'];
$fontsType = $_POST['fontsType'];
$colorScheme = $_POST['colorScheme'];
$highImpactImg = $_POST['highImpactImg'];
$videoShows = $_POST['videoShows'];
$videoTour = $_POST['videoTour'];
$commercialBanners = $_POST['commercialBanners'];
$bannerDescription = $_POST['bannerDescription'];
$numberOfPages = $_POST['numberOfPages'];
$popUp = $_POST['popUp'];
$musicPlaying = $_POST['musicPlaying'];
$provideMusic = $_POST['provideMusic'];
$searchBox = $_POST['searchBox'];
$contentUpdate = $_POST['contentUpdate'];
$subscribe = $_POST['subscribe'];
$newsLetters = $_POST['newsLetters'];
$expand = $_POST['expand'];
$expandDescription = $_POST['expandDescription'];
$similarWS = $_POST['similarWS'];
$provideLinks = $_POST['provideLinks'];
$shoppingCart = $_POST['shoppingCart'];
$onLinePayments = $_POST['onLinePayments'];
$paymentsType = $_POST['paymentsType'];
$dataSize = $_POST['dataSize'];
$onLineReservation = $_POST['onLineReservation'];
$designBudget = $_POST['designBudget'];
$webHostSpecifications = $_POST['webHostSpecifications'];
$otherInfo = $_POST['otherInfo'];
$needWebHost = $_POST['needWebHost'];
$hostingBudget = $_POST['hostingBudget'];
$howManyEmails = $_POST['howManyEmails'];
$forwardingEmail = $_POST['forwardingEmail'];
$domain = $_POST['domain'];
$domainName = $_POST['domainName'];
$maintenance = $_POST['maintenance'];
$questionnaireForm ="-----------------------------------------<br><br>";
$questionnaireForm .="$name, is requesting a price quote and she/he sent the following informations: <br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="<b><u>Contact informations</u></b><br><br><br><br>";
$questionnaireForm .="<b>Business name:</b> $businessName <br>";
$questionnaireForm .="<b>Name:</b> $name <br>";
$questionnaireForm .="<b>Title:</b> $title <br>";
$questionnaireForm .="<b>Address:</b> $address <br>";
$questionnaireForm .="<b>City:</b> $city <br>";
$questionnaireForm .="<b>Postal Code:</b> $postalCode <br>";
$questionnaireForm .="<b>Telephone:</b> $telephone <br>";
$questionnaireForm .="<b>Fax:</b> $fax <br>";
$questionnaireForm .="<b>eMail:</b> $eMail <br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="<b><u>General design specifications</u></b><br><br><br><br>";
$questionnaireForm .="<b>Re-designing Web Site:</b> $reDesignWS <br>";
$questionnaireForm .="<b>New Web Site:</b> $newWS <br>";
$questionnaireForm .="<b>Due date:</b> $dueDate <br>";
$questionnaireForm .="<b>Web Address:</b> $webAddress <br>";
$questionnaireForm .="<b>Re-design logo:</b> $reDesignL <br>";
$questionnaireForm .="<b>New Logo:</b> $newL <br>";
$questionnaireForm .="<b>Logo description:</b> $logoDescription <br>";
$questionnaireForm .="<b>What to present on Web Site:</b> $presentOnWS <br>";
$questionnaireForm .="<b>What to emphasize on Web Site:</b> $emphasizeOnWS <br>";
$questionnaireForm .="<b>What is the age group:</b> $ageGroup <br>";
$questionnaireForm .="<b>Web Site should be build using:</b> $WScode <br>";
$questionnaireForm .="<b>Web Site size should be:</b> $WSsize <br>";
$questionnaireForm .="<b>Web Site resolution should be fit for:</b> $WSresolution <br>";
$questionnaireForm .="<b>Scroll option:</b> $scrolling <br>";
$questionnaireForm .="<b>Client to provide images:</b> $img <br>";
$questionnaireForm .="<b>Image type:</b> $imgType <br>";
$questionnaireForm .="<b>Client to provide content:</b> $content <br>";
$questionnaireForm .="<b>What fonts to use:</b> $fontsType <br>";
$questionnaireForm .="<b>Color scheme:</b> $colorScheme <br>";
$questionnaireForm .="<b>High impact images/graphics:</b> $highImpactImg <br>";
$questionnaireForm .="<b>Video shows:</b> $videoShows <br>";
$questionnaireForm .="<b>Video tour:</b> $videoTour <br>";
$questionnaireForm .="<b>Commercial banners:</b> $commercialBanners <br>";
$questionnaireForm .="<b>Banner description:</b> $bannerDescription <br>";
$questionnaireForm .="<b>Number of pages:</b> $numberOfPages <br>";
$questionnaireForm .="<b>Pop-up pages:</b> $popUp <br>";
$questionnaireForm .="<b>Background music:</b> $musicPlaying <br>";
$questionnaireForm .="<b>Client to provide music:</b> $provideMusic <br>";
$questionnaireForm .="<b>Search box:</b> $searchBox <br>";
$questionnaireForm .="<b>Uploading images and content on the easy way:</b> $contentUpdate <br>";
$questionnaireForm .="<b>Users to subscribe on-line:</b> $subscribe <br>";
$questionnaireForm .="<b>Client to send news letters to users:</b> $newsLetters <br>";
$questionnaireForm .="<b>Planning to expand Web Site in future:</b> $expand <br>";
$questionnaireForm .="<b>Expand description:</b> $expandDescription <br>";
$questionnaireForm .="<b>Web Sites that client likes and to use as samples:</b> $similarWS <br>";
$questionnaireForm .="<b>Links:</b> $provideLinks <br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="<b><u>E-commerce Web Site specifications</u></b><br><br><br><br>";
$questionnaireForm .="<b>Shopping cart:</b> $shoppingCart <br>";
$questionnaireForm .="<b>On line payments:</b> $onLinePayments <br>";
$questionnaireForm .="<b>Payments type:</b> $paymentsType <br>";
$questionnaireForm .="<b>Data size:</b> $dataSize <br>";
$questionnaireForm .="<b>On-line reservations:</b> $onLineReservation <br>";
$questionnaireForm .="<b>Budget for web design & development:</b> $designBudget <br>";
$questionnaireForm .="<b>Web host specifications:</b> $webHostSpecifications <br>";
$questionnaireForm .="<b>Other info:</b> $otherInfo <br>";
$questionnaireForm .="<b>Client need of a Web Host:</b> $needWebHost <br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="<b><u>Web hosting considerations</u></b><br><br><br><br>";
$questionnaireForm .="<b>Anual budget for a web host:</b> $hostingBudget <br>";
$questionnaireForm .="<b>How many eMails need it:</b> $howManyEmails <br>";
$questionnaireForm .="<b>Forwarding eMails:</b> $forwardingEmail <br>";
$questionnaireForm .="<b>Already having a domain name:</b> $domain <br>";
$questionnaireForm .="<b>Domain name:</b> $domainName <br>";
$questionnaireForm .="<b>Require maintenance:</b> $maintenance <br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$questionnaireForm .="<b><u>End</u></b><br><br>";
$questionnaireForm .="-----------------------------------------<br><br>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "Content-Tranfer-Encoding: 7bit\r\n";
$headers .= "From: " . $eMail . "\r\n";
$mail = mail("eugen.borcan@creativelines.ca", "$name is asking a price quote!", "$questionnaireForm", "$headers");
if (!$mail) {
header("Location: errorQuestionnaire.html");
} else {
header("Location: successQuestionnaire.html");
};
?>
What I'm I doing wrong? ANY kind of help it will greatlly apreciated ... thank you.