cliftonbazaar Posted April 11, 2009 Share Posted April 11, 2009 I have a form that shows peoples details and on this particular page they can change their details, so it needs to be a form that shows what values they have already have. echo "<TR><TD>City/Suburb :</TD><TD><INPUT TYPE=Text NAME=city VALUE=".$user['city']." SIZE=15></TD>"; VALUE=".$user['city']." simply doesn't work, I have tried a few other variations (including VALUE ' ".$user['city']." ') but I'm still stuck ??? Link to comment https://forums.phpfreaks.com/topic/153597-solved-putting-a-php-variable-into-a-form/ Share on other sites More sharing options...
trq Posted April 11, 2009 Share Posted April 11, 2009 echo "<TR><TD>City/Suburb :</TD><TD><INPUT TYPE='Text' NAME='city' VALUE='{$user['city']}' SIZE='15'></TD>"; Link to comment https://forums.phpfreaks.com/topic/153597-solved-putting-a-php-variable-into-a-form/#findComment-807107 Share on other sites More sharing options...
R4nk3d Posted April 11, 2009 Share Posted April 11, 2009 thats odd, my whole website is built with <input value=\"" . $r['username'] . "\">, etc. always works for me. Link to comment https://forums.phpfreaks.com/topic/153597-solved-putting-a-php-variable-into-a-form/#findComment-807109 Share on other sites More sharing options...
cliftonbazaar Posted April 11, 2009 Author Share Posted April 11, 2009 Thanks thorpe for the reply, that did the trick Thanks also R4nk3d, I might try that another time. Link to comment https://forums.phpfreaks.com/topic/153597-solved-putting-a-php-variable-into-a-form/#findComment-807128 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.