/    Sign up×
Community /Pin to ProfileBookmark

What’s wrong with this PHP Mailto?

Hey What’s wrong with this php mailto i can’t figure out why it does not work. Any advice could be great ?

PHP Mailto:::
<?php
if ($_POST[“CheckBox”] == “A”)
{
$text = “Information Below:nnFull Name: ” .$_
POST[‘fullname’]. “nCounty: ” .$_POST[‘county’]. ” nApproximate House Value: ” .$_POST[‘approxhomevalue’]. “nYoungest Person on Deed Date of Birth: ”
.$_POST[‘dob’]. “nTotal Current Balance of Any Mortgages, equityies or liens against your property: ” .$_POST[‘currbalance’]. “nEmail: ”
.$_POST[’email’]. “nQuestions: ”
.$_
POST[‘questions’];
if(mail(‘[email protected]‘,”Contact Information from the Contact Us Page”,$text)){
print “<p>**You have succesfully sent an e-mail to us and we will respond to you shortly, please wait and you will be redirected automatically to the How Much is Available Page or click another link to browse our website.</p>”;}
}
if ($_POST[“CheckBox”] == “B”)
{
$text = “Information Below:nnFull Name: ” .$_
POST[‘fullname’]. “nCounty: ” .$_POST[‘county’]. ” nApproximate House Value: ” .$_POST[‘approxhomevalue’]. “nYoungest Person on Deed Date of Birth: ”
.$_POST[‘dob’]. “nTotal Current Balance of Any Mortgages, equityies or liens against your property: ” .$_POST[‘currbalance’]. “nTelephone: ” .
$_POST[‘telephone’]. “nQuestions: ”
.$_
POST[‘questions’];
if(mail(‘[email protected]‘,”Contact Information from the Contact Us Page”,$text)){
print “<p>**
You have succesfully sent an e-mail to us and we will respond to you shortly, please wait and you will be redirected automatically to the How Much is Available Page or click another link to browse our website.</p>”;}
}
if ($_POST[“CheckBox”] == “C”)
{
$text = “Information Below:nnFull Name: ” .$_
POST[‘fullname’]. “nCounty: ” .$_POST[‘county’]. ” nApproximate House Value: ” .$_POST[‘approxhomevalue’]. “nYoungest Person on Deed Date of Birth: ”
.$_POST[‘dob’]. “nTotal Current Balance of Any Mortgages, equityies or liens against your property: ” .$_POST[‘currbalance’]. “nU.S. Mail: ”
.$_POST[‘snail’]. “nAddress: ”
.$_
POST[‘adress’]. ” ”
.$_POST[‘location’]. “nQuestions: ”
.$_
POST[‘questions’];
if(mail(‘[email protected]‘,”Contact Information from the Contact Us Page”,$text)){
print “<p>**You have succesfully sent an e-mail to us and we will respond to you shortly, please wait and you will be redirected automatically to the How Much is Available Page or click another link to browse our website.</p>”;}
}

?>

Form part of the PHP:::
<p><label><input type=”checkbox” name=”CheckBox” value=”A”/>E-mail Address</label><br/>
</P
<div id=”checkbox1″><p>Your Email Address <br /><input style=”width: 1.71in; height: 0.24in;” name=”email” size=”20″ type=”text” /></p></div>
<br/>
<p><label><input type=”checkbox” name=”CheckBox” value=”B”>Telephone</label></p>
<div id=”checkbox2″>
<p>Your Telephone Number <br /><input style=”width: 1.71in; height: 0.24in;” name=”telephone” size=”20″ type=”text” /></p></div>
<br/>
<p><label><input type=”checkbox” name=”CheckBox” value=”C”/>Mail Address</label></p>
<div id=”checkbox3″><p>
Your Name<br /><input style=”width: 1.71in; height: 0.24in;” name=”snail” size=”20″ type=”text” /><br />Your Address<br /><input style=”width: 1.71in; height: 0.24in;” name=”address” size=”20″ type=”text” /><br />City,State,Zip<br /><input style=”width: 1.71in; height: 0.24in;” name=”location” size=”20″ type=”text” /><br /><br /></p>
</div>

Thanks,
Kamron

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@NogDogJun 20.2009 — [noparse][code=php]...[/code][/noparse] bbcode tags, please, so we can read the code without getting a headache.
Copy linkTweet thisAlerts:
@JunkMaleJun 20.2009 — My head hurts....
×

Success!

Help @malikk spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...