Im trying to add a class after a form is submitted depending on the option the user chose.
<form enctype="multipart/form-data" action="upload.php" method="POST">
title:<br />
<input type="text" name="title" value="" /> <br />
description:<br />
<input type="text" name="description" value="" /> <br />
Categories:<br />
<input type="checkbox" name="categories[]" value="1">Landscpae<br />
<input type="checkbox" name="categories[]" value="2">Portrait<br />
<input type="checkbox" name="categories[]" value="3">Monochrome<br />
Please choose an image: <input name="uploaded" type="file" /><br />
<input type="submit" value="Upload" />
</form>
<li class='INSERT OPTION HERE'> test </li>
With the option to select more than one class so add a space after each one. on my database the Value="1" "2" "3" == the option name
let me know if more information is needed