What is wrong with this plugin?
-
What is wrong with this plugin?
<?php /* Plugin Name: Contact Form Shortcode Description: Put shortcode [contactform] in a post or page. */ <form action="post"> <h2>Contact Form</h2> Name <input style="width: 220px; height: 20px;" type="text" maxlength="25" name="Name" size="28" /> E-mail <input style="width: 220px; height: 20px;" type="text" maxlength="25" name="E-mail" size="30" /> Subject <input style="width: 220px; height: 20px;" type="text" maxlength="25" name="Subject" size="30" /> Text <textarea style="width: 420px; height: 150px;" cols="20" name="Text" rows="10"></textarea> <input type="submit" value="Send Email" /> </form> class Contact Form Shortcode { function contactform_func() { return "content = $content"; } } add_shortcode( 'contactform', array( 'Contact Form Shortcode', 'contactform_func' ) ); </?php
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘What is wrong with this plugin?’ is closed to new replies.