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..... Quote Link to comment 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. Quote Link to comment 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>"; Quote Link to comment 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>'; Quote Link to comment Share on other sites More sharing options...
devilinc Posted November 26, 2010 Author Share Posted November 26, 2010 thanks a lot!!! yes it worked... Quote Link to comment 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.... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.