escape $ with \,
<input type='text' name='nom$i' value='\$nom$i'>
Alexander Guevara wrote:
hi.. i have this and i cant get it work!!..
HERES THE CODE
----------------------------------------------------------------------------
-----------------------------------
for ($i=1;$i<11;$i++){
echo"<tr height='40px'>
<td class='contenido' width='40%'><b>TEXT</b>
<input type='text' name='nom$i' value='$nom$i'>
</td>
</tr>";
}
----------------------------------------------------------------------------
---------------
so what i need is that the output in HTML shows tha value as is.. for
example the output of the code above is like this (im going to show only
the input part thats the one i need to resolve!)
<input type='text' name 'nom1' value='1'>
Remember the number depends on the $i.. i only showing one...
thats what that code generates... what i need is like this:
<input type='text' name 'nom1' value='$nom1'>
So in conclusion what i need is the "$nom1" for retrieving the value of that
variable later if an error ocurrs during a trasanction: (when an error
occurs and i have to go back to thhis page)
Thanks in advance!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php