Comments form hidden

From Photostand Wiki

Jump to: navigation, search
comments_form_hidden()

The comments_form_hidden function will return a hidden input tag containing the current article id required by PhotoStand. This function is ESSENTIAL and must be placed within the comments form tags : <form> and </form>.

Parameters

This function has no parameters.

Examples

Addind the hidden input into the comments form

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>

	<title>Article</title>

    </head>
    <body>

        <form action="index.php" method="post">
	    <?php echo comments_form_hidden(); ?>
            <textarea name="comment"></textarea>
            <input type="submit" value="Post comment" />
	</form>

    </body>
</html>

This is a simple example of how to place the comment form.

Personal tools