views:

46

answers:

0

i have tried what the first person ask me to do it work but there was a problem the submit button did not send to the $_POST['submit'] whether it because of the false in my button(<input type="submit" name="submit" value="Submit" onClick="show_content('div_2'); return false;"/>)i fall i mention that in tab2 content i have a php code that receive the button send to it below is my code i will appreciate it if you edit on make code

 <ul class="TabbedPanelsTabGroup">
    <li class="TabbedPanelsTab" tabindex="0">Tab1</li>
    <li class="TabbedPanelsTab" tabindex="0">Tab2</li>
    </ul>

    <div class="TabbedPanelsContentGroup">

    <div class="TabbedPanelsContent" id="div_1">
    //this is where the content of the tab1 will be and i have another form in this content too

    </div>

    <div class="TabbedPanelsContent" id="div_2">
    //this is where the content of the tab2 will be
    <form action="home.php" method="post">
    <?php
    if (isset($_POST['submit'])) {
    if(empty($_POST['boded']){
    echo"Please do it again.";
    }else{
     $mgs = ($_POST['boded']);
     //then insert to my database   
    }
    ?>
    <form action="home.php" method="post">
<textarea id="message" name="boded" rows="5" cols="40"></textarea>
<input type="submit" name="submit" value="Submit" onClick="show_content('div_2'); return false;"/>
    </div>