I have two PHP files being shown to the user using frames. (Below is a small portion of the code from the two files)
First PHP file - q11.php
echo "<form action = 'q21.php' method = 'post' id = 'sub1'>";
echo "<br><input type = 'submit' name = 'ans' value = 'a'>";
echo "<br><input type = 'submit' name = 'ans' value = 'b'>";
echo "<br><input type = 'submit' name = 'ans' value = 'c'>";
echo "<br><input type = 'submit' name = 'ans' value = 'd'>";
echo "</form>";
Second PHP file - status.php
echo "<h4 id = 'q1'>Question 1";
Now, when the user clicks on any of the submit buttons belonging to the first PHP file (q11.php), I want to change the colour of the h4 element in the second PHP file (status.php).
Thank you for the guidance and help in advance.