Help with php post back and creating mutilple forms in one page

asa89

Member
Apr 3, 2009
71
1
0
Hi Friends ,

I need some help with creating a website with php. I have a page where i need to create 3 forms which submit one after other using postback to the page it self.Once the form 1 is submitted , the form 2 should be displayed and the filled form 1 should be displayed as well.

What i tried so far ,

I hide the the form 2 and 3 using css but i am not able to show up the forms one after the other..

Looking forward to your advice..Thanks a lot..
 

kolavari

Well-known member
  • Aug 11, 2012
    33,746
    1
    25,653
    113
    කැළෑ පොජ්ජේ
    ithin ban form 1 eken hidden field ekak pass karapan..karala...second form eke check karapan eka set welada kiyala..welanam form eka display karapan...

    PHP:
    $display_css = '';
    if(isset($_GET['hidden_field'])
       $display_css = 'display:block';
    
    <form style="<?=$display_css ?>" action="#">
    ...
    ...
    </form>
     
    Last edited: