*Hollie21*
New member
I am using MODx, and have got the following code in a snippet:
echo '<FORM METHOD=POST>';
echo 'Name';
echo '<input type="text" name="name" value="$name">';
echo '<input type=submit name="submit" value="Update"></p>';
echo '</FORM>';
$name does equal what I want it too, as I have printed it out earlier to check that it has the correct value. However when I try and get it to display within the form field, all I get printing out is $name. Is there a way of doing it without calling <php echo $name ?> - only this doesn't seem to work in MODx as the whole snippet already has to be coded in php and not html.
Hopefully someone can help!
Thanks Garren, that was it exactly! I can't believe how simple my error was!
Thanks!
echo '<FORM METHOD=POST>';
echo 'Name';
echo '<input type="text" name="name" value="$name">';
echo '<input type=submit name="submit" value="Update"></p>';
echo '</FORM>';
$name does equal what I want it too, as I have printed it out earlier to check that it has the correct value. However when I try and get it to display within the form field, all I get printing out is $name. Is there a way of doing it without calling <php echo $name ?> - only this doesn't seem to work in MODx as the whole snippet already has to be coded in php and not html.
Hopefully someone can help!
Thanks Garren, that was it exactly! I can't believe how simple my error was!
Thanks!