Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: how should i process form data with the skeleton plugin for an edit screen


shaisimchi
Participant

@shaisimchi

ok i’ll try to explain what i did.

when you install the plugin in its original form is it called bp-example so i will stick to that naming convention.

under wp-content/plugins you have the folder called bp-example with all the files in it (class, templatetags etc).

under wp-content/plugins you also have a file called bp-example.php

(if you put these two in place you can activate the bp-example plugin without making any changes).

anyways, I created my form inside bp-example.php

my form started with something like that:

<form id=”form1″ name=”form1″ action=”<?php bp_example_do_something() ?>” method=”post”>

rest of form is here etc

later i have the submit button to submit the form etc.

once you submit the form it calls the function in the action. this function is in bp-example-temlatetags.php that is in the bp-example folder.

inside this function you can use the $_POST and do whatever you want with your POST variables.

hope this helps.

Thanks,

Shai

Skip to toolbar