Jump to content

hidden input field type doesnt store complete value


devilinc

Recommended Posts

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..... :-[

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>";

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.