!resolved! - a change in coding style
I know i can change
(HTML inside echo statements)
echo "What grade did $Name get in Math?";
to
(PHP inside HTML)
What grade did <?php $Name ?> get in Math?
and it will work.
But how do i change
echo "<input type=hidden name=Student[] value='$Name'>";
to something similar?
I've tried using
<input type="hidden" name="<?php $Student[] ?>" value="<?php $Name ?>">
and
<input type="hidden" name="Student[]" value="<?php $Name ?>">
but neither will work.
What this code is supposed to do is create an array called $Student which i need to call on in the next page which processes the form.
Can anyone help or must i use HTML inside an echo statement for this to work?
__________________
grimmy
God, grant me the serenity to accept the things I cannot change, the courage to change the things I can, and the wisdom to hide the bodies of those people I had to kill because they pissed me off.
|