Jump to content

Bullet Point and Session Vaibles


hewstone999

Recommended Posts

I have some code below that outputs a bullet list. This will create about 6 different bullet points. However im stuck on how i can create a session varible for each bullet point, so everytime a user clicks on the bullet point (or on the 'submit' button) this will create a session varible with the value = $test. Session_start() has been added before this code

.............

//This will output a bullet point list

echo "<form action='Cleanser_step3.php' name='form2' method='POST'>";

for ($test=1; $test<=$column1; $test++){

echo "<label>";

echo "<input type='radio' name='Col$test' value=$test" ;

if (isset($fields['Col$test']) == '$test') echo 'checked';

echo ">";

echo "Column ".$test;

echo "</label>";

echo "<br>";

}

echo "<input type='submit' align='right' value='Next >>'>";

$_SESSION['$DimOther'] = $DimOther;

echo "</form>";

}

................

Link to comment
https://forums.phpfreaks.com/topic/152430-bullet-point-and-session-vaibles/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.