[PHP] ptting the variable inside the input

2007-08-22 Thread Hulf
This does not work echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; Ta, R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] ptting the variable inside the input

2007-08-22 Thread Jay Blanchard
[snip] echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; [/snip] echo trtdinput name=\title\ type=\text\ value=\.$title.\ //td; You have to concatenate the value $title into the string -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] ptting the variable inside the input

2007-08-22 Thread Stut
Hulf wrote: This does not work echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; In what way does it not work and you do realise you're outputting $title on its own as well as the table row and input. This will appear above the table in most browsers

Re: [PHP] ptting the variable inside the input

2007-08-22 Thread Stut
Hulf wrote: This does not work echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; In what way does it not work and you do realise you're outputting $title on its own as well as the table row and input. This will appear above the table in most browsers

RE: [PHP] ptting the variable inside the input

2007-08-22 Thread Jay Blanchard
[snip] [snip] echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; [/snip] echo trtdinput name=\title\ type=\text\ value=\.$title.\ //td; You have to concatenate the value $title into the string [/snip] Actually don't have to do that, it was just one of the

RE: [PHP] ptting the variable inside the input

2007-08-22 Thread Instruct ICC
From: Hulf [EMAIL PROTECTED] This does not work echo $title=$row['title']; echo trtdinput name=\title\ type=\text\ value=\$title\ //td; Ta, R. I'll pull a Johnny Carson divining moment and say: Did you need the first 'echo'? Does $title need to be set? Try: $title=$row['title']; You

RE: [PHP] ptting the variable inside the input

2007-08-22 Thread Jan Reiter
Hi! You don't have to end your string when placing an array value. {} will tell the parser to interpret the text between as a variable. Try: echo trtdinput name=\title\ type=\text\ value=\{$row['title']}\ //td; Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: