One of the features of my programme offers an inputbox and a click button(which is of type "submit" )
The user enters a string (for example: "test") and clicks the button ,then a new php page opens displaying the output in a textarea.
Here is the code for the textarea:
<textarea name="Answerfield" id="ta" name="ta"> <?php echo $Mark; ?> </textarea>
As you can see there is a php variable in the textarea that will just print whatever is defined by $Mark
This JS code works
I have created a JS variable which would link the getMark function to $Mark :
var inputMark = <?php echo $Mark; ?>";
Here is the line of code of the $Mark variable:
<?php $Mark= ?>
I am new to php and I must admit I am stuck with this rather silly problem!
Thanks in advance for your precious advice,