Wordpress admin integration with custom PHP form

Hi,

Im trying to integrate some custom php code with the front & backend of Wordpress.

In the front, a form saves some simple info to the database and sends an email.
In the back, another form gives us the option to view all the entered data.

Which is the best way to approach this? Specially for the admin integration?

For the front end, im just putting the code in a custom template for a new page.
But for the admin, im not sure if I have to create a plugin, use shortcodes, or just code it in the theme, etc.

Any input on which direction to take would be appreciated.

Thanks!

N

For the front part, develop the code/page you want on your computer. Save it as [whatever you want].php. Put the following code in the first line of the file


<?php
/*
Template Name: //something you will recall
*/
?>

Upload your file to the theme’s directory (/wp-content/themes/[theme name]/). In Wordpress, make a new Page. Give it a title. Leave the body blank. On the right, it should have a template drop down, and you should see whatever you named it.

For the back end, if you want in IN the panel, see: http://codex.wordpress.org/Administration_Panels
Or make a new page that only logged in members with the role of admin can see…