I am having trouble with this line of code:
echo("Unapreciated person #$c: <input type=\"text\" name=ename$c value={$_POST['ename'.$c]}><br><br>");
This will display the first word the user typed into that input box on the last page but will not display any other words after a space.
Anyone know how to make it so this line will do the same thing just will print everything the user typed ( in the input box on the last page ) into another input box?
Thanks for all help provided.
Help with a line of code
Moderator: General Moderators
that's why you should quote any property of an html-element.
If not, someone dislikes me and enters Volker Krause you haveand there's no way for the client to determine that Krause has anything to do with name.
If not, someone dislikes me and enters Volker Krause you have
Code: Select all
Unapreciated person #1 <input type="text" name=ename1 value=Volker Krause>Code: Select all
echo 'Unapreciated person #', $c, ': <input type="text" name="ename', $c, '" value="', $_POST['ename'.$c], ' /><br /><br />';
Last edited by volka on Wed Feb 26, 2003 8:59 am, edited 1 time in total.