How does the text look like in the database? Five Star? or Five_Star?
Aser Gado
Junior Poster in Training
52 posts since Feb 2011
Reputation Points: 10
Solved Threads: 1
Names need to be single words. No spaces. When you say 'name', I'm assuming you mean the name attribute. If not, what do you mean?
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
If the value attribute is used without quotes, then the space (after Five in your case) will be assumed as the separator for the next attribute.
<!-- this was your output -->
<input type='text' name='reg' value=Five Stars />
<!-- this is what it should be (as amitengg showed) -->
<input type='text' name='reg' value='Five Stars' />
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Sorry I misread your first post. Your value attribute can pretty much be anything
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
You haven't added the quotes yet:
<input type="text" name="name" value="<?php echo $name; ?>"><br/>
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
Are you using php to output the whole html?
either
<input type="text" name="name" value="<?php echo $row['name']; ?>"><br/>
OR
echo "<input type=\"text\" name=\"name\" value=\"{$row['name']}\"><br/>";
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
You are STILL missing the quotes around the value... Look again at @ardav's code.
pritaeas
Posting Expert
5,480 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875