Forum Moderators: coopster
...what's "Meta Description" ...
Anyway, been hunting the internet for help on this problem and I think I found this forum site the kindest to newbee's.
I've a script that runs out in an HTML table the contents of a mySQL table, with radio buttens on the side to select a specific row. I've not had any problems with this script disgorging the proper text as stored in mySQL. It's supposted to say "Late Fee June".
The next script only displays that one row of the mySQL table, however each HTML cell element is in fact an <input> tag, each of which is assigned the "value" of the data in the mySQL table:
echo "<td><input type=text size=15 length=15 name=what_f value=".$row_a[what]."></td>";
and
echo "<td><input type=text size=15 length=15 name=what_f value=$row_a[what]></td>";
both fail to display all but the first word. The display gives "Late" instead of "Late Fee June". This is a bad problem because I'm using REPLACE INTO syntax in my (eventual) query. The "Late Fee June" data will be completely lost and reduced to "Late".
To me, it is obvious the $resultset is good, it displays fine if I don't use any <input> tags. The 'while' statement generating $row_a arrays worked great without using the <input> tags as well.
The problem really centers on using multiword strings as the "value" attibute, the first space charactor dumps itself and everything after.
Any work arounds?
-- Russ (doesn't do d4).