|
Posted by Derek @ Blueyonder on 07/05/06 13:28
>> Hi
>>
>> Good one, that is working fine. And yes checking the source html it was
>> different to what was shown on the screen. Very strange.
>
> What's strange about browser not being able to display incorrect html? If
> the code is corrupted like in this case it was, no wonder the browser
> cannot correctly display it. That's why you should always alwasy make sure
> the html your script produces is accurate, to make sure it's displayed
> correctly.
>
>
> --
> "ohjelmoija on organismi joka muuttaa kofeiinia koodiksi" -lpk
> spam@outolempi.net | Gedoon-S @ IRCnet | rot13(xvzzb@bhgbyrzcv.arg)
>
You are correct, wrong HTML and the results will be unpredictable.
Now that I understand what I was doing wrong I have applied the same process
to a text area but this will not display any text at all, code below.
echo ("<td colspan='2'><textarea name='extract' cols='100' rows='5' value='
" . $myrow[3] . " '></textarea></td>");
Are text areas treated in a different way?
Any finaly if I may checkboxes, can values be loaded into them in the same
sort of way as you explained above? The code is
echo ("<td width='427'><input type='checkbox' name='childhood' value=" .
$myrow[27] ."></td>");
The value being loaded in is either a 1 or 0. I would like it to place a
tick in the checkbox if the value loaded is a 1.
As you have probably realised this is the first time since taking a basic
PHP course that I have used PHP, on the course everything always works OK
but this is real life!
I have googled and found several websites that do tutorials for PHP but none
seem to cover this requirement, does anyone know of any sites they could
recommend please.
Any help you could give is appreciated.
Navigation:
[Reply to this message]
|