Change status from not complete into completed PHP -



Change status from not complete into completed PHP -

i wonder how create status not finish completed. 'not complete' link menu page user, after click link, redirect survey module.

my question how if user submit survey module , redirect menu page, , @ same time status alter 'completed'.

kindly need guidance , recommendation. tq.

below code more understanding :

class="snippet-code-html lang-html prettyprint-override"> <table border="1" align="center" cellpadding="0" cellspacing="0"> <tr><td> <table border="1" cellpadding="7" width="630" cellspacing="1"> <tr> <th><font size=2>modul</font></th> <th><font size=2>status</font></th> </tr> <tr><td><font size=2><center>modul 1<td><a href="indsurvey1.php"><center><font size=2>not complete</a></td> <tr><td><font size=2><center>modul 2<td><a href="indsurvey2.php"><center><font size=2>not complete</a></td> <tr><td><font size=2><center>modul 3<td><a href="indsurvey3.php"><center><font size=2>not complete</a></td> <tr><td><font size=2><center>modul 4<td><a href="indsurvey4.php"><center><font size=2>not complete</a></td> </table> </td></tr> </table>

from best understanding, sense need manage status flag while moving 1 page another.

for may utilize session variable , initialize 'not complete' , manipulate accordingly.

for illustration :

$_session['status']='not complete'; function menu() { if(status1 == true) { $_session['status'] = 'complete'; } else { echo 'not complete'; } }

hope helps!

php status

Comments

Popular posts from this blog

xslt - DocBook 5 to PDF transform failing with error: "fo:flow" is missing child elements. Required content model: marker* -

mediawiki - How do I insert tables inside infoboxes on Wikia pages? -

Local Service User Logged into Windows -