devilinc Posted November 26, 2010 Share Posted November 26, 2010 hidden input field type doesnt display the full value i get from table, say if it is a first name and last name i get only the first name. here is my input field echo "<input type=hidden name=proid value=$result_row[project_id]></include>"; echo "<input type=text value=$result_row[project_name] readonly></include>"; my sql query returns the full name but when i input into the text field it returns an incomplete project name like say if it is fans of soccer, i just get the value "fans" in my display..... Link to comment https://forums.phpfreaks.com/topic/219888-hidden-input-field-type-doesnt-store-complete-value/ Share on other sites More sharing options...
trq Posted November 26, 2010 Share Posted November 26, 2010 Attributes need quotes around there values to be valid. Link to comment https://forums.phpfreaks.com/topic/219888-hidden-input-field-type-doesnt-store-complete-value/#findComment-1139869 Share on other sites More sharing options...
doddsey_65 Posted November 26, 2010 Share Posted November 26, 2010 Attributes need quotes around there values to be valid. Was just about to say that. Instead of using: echo "<input type=text value=$result_row[project_name] readonly></include>"; use: echo "<input type="text" value="'.$result_row['project_name'].'" readonly></include>"; Link to comment https://forums.phpfreaks.com/topic/219888-hidden-input-field-type-doesnt-store-complete-value/#findComment-1139870 Share on other sites More sharing options...
MrXHellboy Posted November 26, 2010 Share Posted November 26, 2010 echo '<input type="hidden" name="proid" value="'.$result_row['project_id'].'"></input>'; echo '<input type="text" value="'.$result_row['project_name'].'" readonly></input>'; Link to comment https://forums.phpfreaks.com/topic/219888-hidden-input-field-type-doesnt-store-complete-value/#findComment-1139871 Share on other sites More sharing options...
devilinc Posted November 26, 2010 Author Share Posted November 26, 2010 thanks a lot!!! yes it worked... Link to comment https://forums.phpfreaks.com/topic/219888-hidden-input-field-type-doesnt-store-complete-value/#findComment-1139872 Share on other sites More sharing options...
devilinc Posted November 26, 2010 Author Share Posted November 26, 2010 @thorpe: special thanks and to all who chipped in.... Link to comment https://forums.phpfreaks.com/topic/219888-hidden-input-field-type-doesnt-store-complete-value/#findComment-1139873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.