I have tried to post the following to Stack Overflow:
I have a very simple HTML form embedded in an email I send to people who have subscribed to my blog so they can confirm their email addresses. The embedded code is:
$_POST['Name_First'],
Thank you for subscribing to my Blog.Please click to confirm your email address.
P. James Norris
Thank you!
Order Cetaceawhere the two PHP variables are supplied by the PHP of my blog page that sends the email.
What appears in the sent email is what I would expect:
P. James,
Thank you for subscribing to my Blog.
Please click here to confirm your email address.
Thank you!
P. James Norris
Order Cetacea
Sent from www.ocetacea.net/pjamesnorris
where the "here" appears as a hyperlink.
When I click on the link (having subscribed myself with one of my email addresses), my blog page loads but does not appear to receive the email address as
POST
data (orGET
data, for that matter)--Iecho
both but nothing appears on the page.I built a webpage using exactly the same code as the email, and clicking on "here" on the webpage works as I want the email form to work, i.e., the email address is transmitted to my blog page as
POST
data.I've looked at Adding HTML forms to... and Embed HTML form in email and both of these posts are quite old and, I hope, quite out of date.
Could someone please tell me what obvious and stupid mistake I'm making?
Thanks.
And I got the error message:
Your post appears to contain code that is not properly formatted as code. Please indent all code by 4 spaces using the code toolbar button or the CTRL+K keyboard shortcut. For more editing help, click the [?] toolbar icon.
And I cannot figure out why.
How can I fix this?