QUOTE(JusticeDeserves @ May 23 2010, 11:21 PM)
The comment form? Or is it a custom form?
If you're going to use a custom form, just add:
if($_POST['submit-data']) {
//do stuff
}
in functions.php of the theme.
About the comments, you need to learn the functions first.
my case is like this,
i have a theme build by someone else, it's a ecommerce theme.
before a customer confirm the order, can input some remarks which is a text area.
i go and check the file which has the similar function where there is text area for input and save into db,
in tat file itself, i cant see any method handling the text area when the form is submit...
i duno how it get the value from that text area and how it is then stored into db...
fyi, im a java web developer, find it different from what i normally do.
thanks
Added on May 24, 2010, 12:49 amHi, i read about this
WordPress Settings API Tutorialif not mistaken,
let say if i
<?php add_settings_field('plugin_text_string', 'Plugin Text Input', 'plugin_setting_string', 'plugin', 'plugin_m
and then in my html
<?php function plugin_setting_string() {
$options = get_option('plugin_options');
echo "<input id='plugin_text_string' name='Plugin text Input' size='40' type='text' value='{$options['text_string']}' />";
} ?>
whenever i submit the form, wordpress will auto process and save watever value in the "Plugin text Input".
is that correct?
This post has been edited by toocommon: May 24 2010, 12:49 AM