Include php files inside tab -


I have a php file tab.php which is preparing tabs. The code for tab.php is:

    

I have four php files ie setup.php, options.php, question.php and test.php. What should i want when i click on the setup tab setup.php When I click on option.php, then my option.php should open and so on. The initial setup.php should appear. So where should I add all four php files so that special php file opens when clicking on tab Ho?

If you are placing all your tab pages in the same folder as this code, then this should do the trick

  & lt; Ul id = "tab" & gt; & Lt ;? Php $ tab = ''; If (! Isset ($ _ GET ['tab'])) $ tab = 'setup'; And $ tab = $ _GET ['tab']; // $ tab = $ _ request ['tab']; If ($ tab == 'setup') {? & Gt; & Lt; Li & gt; & Lt; P & gt; & Lt; Period & gt; Setup's & lt; / Span & gt; & Lt; / B & gt; & Lt; / Li & gt; & Lt ;? Php} and {? & Gt; & Lt; Li & gt; & Lt; A href = "tab = setup" & gt; & Lt; Span & gt; Setup & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt ;? Php}? & Gt; & Lt ;? Php if ($ tab == 'options') {? & Gt; & Lt; Li & gt; & Lt; P & gt; & Lt; Period & gt; Options & lt; / Span & gt; & Lt; / B & gt; & Lt; / Li & gt; & Lt ;? Php} and {? & Gt; & Lt; Li & gt; & Lt; A href = "? Tab = options" & gt; & Lt; Span & gt; Options & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt ;? Php}? & Gt; & Lt ;? Php if ($ tab == 'question') {? & Gt; & Lt; Li & gt; & Lt; P & gt; & Lt; Period & gt; Questions & lt; / Span & gt; & Lt; / B & gt; & Lt; / Li & gt; & Lt ;? Php} and {? & Gt; & Lt; Li & gt; & Lt; A href = "? Tab = question" & gt; & Lt; Span & gt; Question & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt ;? Php}? & Gt; & Lt ;? Php if ($ tab == 'flow') {? & Gt; & Lt; Li & gt; & Lt; P & gt; & Lt; Period & gt; Flow is & lt; / Span & gt; & Lt; / B & gt; & Lt; / Li & gt; & Lt ;? Php} and {? & Gt; & Lt; Li & gt; & Lt; A href = "tab = flow" & gt; & Lt; Span & gt; Flow & lt; / Span & gt; & Lt; / A & gt; & Lt; / Li & gt; & Lt ;? Php}? & Gt; & Lt; / Ul & gt; & Lt; Div style = "clear: both; background color: # EDCB 27; height: 0px; overflow: hidden;" & Gt; & Lt; / Div & gt; & Lt; Div style = "border: solid 3px # edcb27; background color: # EDCB 27; padding: 10px; font-family: verdana, geneva, non-serif, font-size: 11px;" & Gt; & Lt; Label & gt; Edit Mode & lt; / Labels & gt; & Lt; Label & gt; Dfhfghj & lt; / Labels & gt; & Lt ;! - assuming that you are inserting the content of the page here - & gt; Required ($ tab. 'Php.');    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -