Forum Moderators: coopster
How could I replace the value of ddasads with a variable? I've tried a few options, but nothing worked. The variable is $row['HOBBY']
The problem I think is with the quotes and how to end it and begin them again. I am fairly new to PHP
Thanks,
Hal
A better way is to concatenate the variable with the string. The above is right, some tutorials on PHP may say to do this:
echo '<td> <form method="post" action="update1.php"> <input name="textfield" type="text" value="'.$row['HOBBY'].'" size="q" /> <input name="dsds" type="submit" value="Update" /></form></td>';
The result is the same.