Hi All,
On my site I have a place where users can upload posts.
I have php page that sends the user a confirmation email after their post, where the $_POST values populate the a hidden form. The user is only presented with a form submit button, which allows them to remove the post.
My issue is as follows… I am testing with my own email account. When i recieve the mail with a web based mail client , I see the $_POST values and the form method posts the values to the next page where i process the post removal
However if i open the received mail with Outlook express, the hidden form values are there( checked by changing input type from hidden to text), but when i click the submit button, the values are not posted and the far end page, it just gets empty $_POST values.
Hope this is ok to understand.
Same code acts differently when viewing with different email clients..
Here is the email sending with the form and the values
[code=php]
$to = $_POST[’email’];
$subject = “##”;
//$txt= $_POST[‘title’];
$txt = ”
<html>
<head>
<title>HTML email</title>
</head>
<body>
<strong>You have listed your item</strong>
<strong>Make:</strong> “. $_POST[‘make’]. ” <br />
<strong>Model:</strong> “. $_POST[‘model’]. ” <br />
<strong>Category:</strong> “. $_POST[‘category’]. ” <br />
<strong>Title:</strong>”. $_POST[‘title’].” <br />
<strong> Description:</strong>”. $_POST[‘description’].” <br />
<strong> Price:</strong>”. $_POST[‘price’].” <br />
<strong> Location:</strong>”. $_POST[‘location’]. ” <br /> <br /> <br />
<strong> Your Name</strong>”. $_POST[‘name’]. ” <br />
<strong> Your Telephone Number:</strong>”. $_POST[‘telephone’]. ” <br />
<strong> Your Email Address: </strong>”. $_POST[’email’]. ” <br />
<form method=’post’ action=’mywebsite_post removal proccesing page.php’>
<input type=’hidden’ name=’title’ value='”. $_POST[‘title’].”‘ />
<input type=’hidden’ name=’image’ value='”. $_POST[‘image’].”‘ />
<input type=’hidden’ name=’model’ value='”. $_POST[‘model’].”‘ />
<input type=’hidden’ name=’make’ value='”. $_POST[‘make’].”‘ />
<input type=’hidden’ name=’category’ value='”. $_POST[‘category’].”‘ />
<input type=’hidden’ name=’location’ value='”. $_POST[‘location’].”‘ />
<input type=’hidden’ name=’description’ value='”. $_POST[‘description’].”‘/>
<input type=’hidden’ name=’name’ value='”. $_POST[‘name’].”‘/>
<input type=’hidden’ name=’telephone’ value='”. $_POST[‘telephone’].”‘/>
<input type=’hidden’ name=’email’ value='”. $_POST[’email’].”‘/>
<input type=’hidden’ name=’price’ value='”. $_POST[‘price’].”‘/>
<input type=’submit’ value=’Remove Your Post’ />
</form>
</body>
</html>
“;
$headers = “MIME-Version: 1.0” . “rn”;
$headers .= “Content-type:text/html;charset=iso-8859-1” . “rn”;
mail($to,$subject,$txt,$headers);
.
Is it to do with the email headers being incomplete or wrong?
Thanks in advance
Adrian