HTML tags disappear
-
Dear Sir/Madam:
When i insert HTML tags in the text tab it appears well when i switch to Visual tab. But when i click on update the HTML disappears. Only the text remains.
Am i missing some plugin? or do i have to go for a paid subscription for that.
The code i inserted is:
<form name=’customer_details’ method=’POST’ onsubmit=’return form_validation()’ action=’../customer-details.php’>
Your Name: <input type=’text’ id=’customer_name’ name=’customer_name’ />
Your Email: <input type=’text’ id=’customer_email’ name=’customer_email’ />
Sex: <input type=’radio’ name=’customer_sex’ value=’male’>Male <input type=’radio’ name=’customer_sex’ value=’female’>Female
Your Age: <input type=’text’ id=’customer_age’ name=’customer_age’ />
<input type=’submit’ value=’Submit’/>
</form>The blog I need help with is: (visible only to logged in users)
-
Hi there,
WordPress.com strips certain html, including <form>, for security purposes.
-
You could try using the standard contact form as an alternative:
-
Thanks Gary,
But does that mean we cannot add custom forms?
Look at this site for e.g.How to create custom forms in WordPress without using plugins?
regs
-
But does that mean we cannot add custom forms?
Look at this site for e.g.How to create custom forms in WordPress without using plugins?
That article is referring to self-hosted WordPress.org websites, which are different from WordPress.com websites.
You can learn more about WordPress.com vs WordPress.org here: https://wordpress.com/com-vs-org/
Like @garysixtyeight mentioned, WordPress.com strips <form> HTML for security purposes. You can learn more about what code can and cannot be added to WordPress.com sites here: https://en.support.wordpress.com/code/
You could try using the standard contact form as an alternative: https://en.support.wordpress.com/forms/contact-form/
-
You could use text inputs on a standard contact form for collecting info like ages, radio buttons for sex etc.
-
Another possible alternative is that you could use a service like Google Forms, then create a link to the form from your site.
-
- The topic ‘HTML tags disappear’ is closed to new replies.