Dealing with html forms [closed]

Use the following code: <form action=”action_page.php” method=”post”> First name:<br> <input type=”text” name=”firstname” value=””> <br> Last name:<br> <input type=”text” name=”lastname” value=””> <br> <input type=”submit” value=”Submit”> </form> and in file “action_page.php” Use the following code: $firstname = $_POST[“firstname”]; $lastname = $_POST[“lastname”]; You can read the information with the following code: <pre> <?php print_r($_POST); ؟> </pre> or var_dump($_POST);

widgets_init actions not fired from functions.php’s child theme

In your child theme’s ‘functions.php’ file, you need to use the remove_action( ‘widgets_init’, ‘$name’ ); script. For instance, in your twentytwelve-child theme’s functions.php file, use: remove_action( ‘widgets_init’, ‘twentytwelve_widgets_init’ ); //necessary to replace parent theme’s code and then hook your new widget in your child theme’s function add_action( ‘widgets_init’, ‘new_twentytwelve_widgets_init’, 0 );