Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 95984

Websiteguy on "What is wrong with this plugin?"

$
0
0

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 all articles
Browse latest Browse all 95984

Trending Articles