|
Author |
Message |
netmastan
Junior WebHelper
Joined: 14 Jun 2002
Posts: 2
|
Posted:
Fri Jun 14, 2002 11:27 pm (21 years, 10 months ago) |
|
Can anyone help me how to igonore white space. When i print $suburb, it shows only
Auckland instead of Auckland City. (Same for Great Barrier Island.It just print Great)
can u can tell me how to fix. I have tried rtrim($suburb) no luck.
Code: | <select name=suburb>
<option value=0 selected>Choose ...</option>
<option value=Auckland City>Auckland City</option>
<option value=Franklin>Franklin</option>
<option value=Great Barrier Island>Great Barrier Island</option>
</seelcect> |
thanks |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sat Jun 15, 2002 6:54 am (21 years, 10 months ago) |
|
Add some " around your attribute values. |
________________________________
|
|
|
|
netmastan
Junior WebHelper
Joined: 14 Jun 2002
Posts: 2
|
Posted:
Sat Jun 15, 2002 4:36 pm (21 years, 10 months ago) |
|
Thanks for your help. It's working now. |
|
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Sun Jun 23, 2002 7:29 am (21 years, 10 months ago) |
|
Oh, and keep that in mind for all HTML, not just for that particular code. If there's a space in an attribute's value, you have to put double quotes around it. However, it is recommended (for compatibility with XHTML) to use double quotes on all attribute values, even numbers. |
________________________________
|
|
|
|
|
|
You cannot post new topics in this forum. You cannot reply to topics in this forum. You cannot edit your posts in this forum. You cannot delete your posts in this forum. You cannot vote in polls in this forum.
|
Page generation time: 0.134313 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme
| |