I am not experienced with this but I think I am on good way. I need help from someone experienced. Think it is interesting issue
Let’s say there is 3 checkboxes and 3 textboxes.
<input type="checkbox" name="check[1]" value="1.">
<textarea name="text[1]" ></textarea>
<input type="checkbox" name="check[2]" value="2.">
<textarea name="text[2]" ></textarea>
<input type="checkbox" name="check[3]" value="3.">
<textarea name="text[3]" ></textarea>
And I need to create a loop which will check foreach check[%]
if is checked with
if (isset($_POST['check[%]']))
to add all checked text[%]
textboxes values to some $value
$value
needs to be output as one line in as marquee
I think it needs to be $value
needs to go trough html_entity_decode
but I am not sure.
finally output to be something like
$output .= "<font><marquee scrollamount='3' BEHAVIOR=SCROLL DIRECTION="left"> $value"."</marquee>"."</font>";
For starters, for a PHP POST I would not use brackets in the name of the input values.
index.php:
test.php: