• hi i have a little problem with my first wordpress plugin.
    Here’s code:

    
        function plug_panel(){
            ?>
            <div class="wrap">
                
                <form action="" method="post">
                    
                    <label>
                        <input type="number" name="big_id" id="big_id" /></label>  
                        <input type="submit" name="get_info_by_id" id="get_info_by_id" value="SEND" />
                </form>
                           
                <form action="" method="post">
                    
                    <label>
                        <input type="number" name="info_id" id="info_id" value="<?php if(isset($_SESSION['valuee'])) { echo $_SESSION['valuee']; } ?>" /></label> 
                    <br />
                        <input type="submit" name="info_get_info_by_id" id="info_get_info_by_id" value="ADD" />
                </form>
                
                
            </div>
        <?php
    	
    	if(isset($_POST['big_id'])) { $_SESSION['valuee'] =  $_POST['big_id'] + 25; }
    	
    	
    	
    	
        }
    

    what i want to do is:

    take data from first form, do something with them and put into second form;

    is this code good ?

    • This topic was modified 8 years, 11 months ago by raptor2.
    • This topic was modified 8 years, 11 months ago by raptor2.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘first plugin – form problem’ is closed to new replies.