4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 White spaces
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
netmastan
Junior WebHelper
Junior WebHelper


Joined: 14 Jun 2002
Posts: 2

PostPosted: Fri Jun 14, 2002 11:27 pm (15 years, 4 months ago) Reply with QuoteBack to Top

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
OfflineView User's ProfileFind all posts by netmastanSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sat Jun 15, 2002 6:54 am (15 years, 4 months ago) Reply with QuoteBack to Top

Add some " around your attribute values.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
netmastan
Junior WebHelper
Junior WebHelper


Joined: 14 Jun 2002
Posts: 2

PostPosted: Sat Jun 15, 2002 4:36 pm (15 years, 4 months ago) Reply with QuoteBack to Top

Thanks for your help. It's working now.
OfflineView User's ProfileFind all posts by netmastanSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Sun Jun 23, 2002 7:29 am (15 years, 3 months ago) Reply with QuoteBack to Top

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.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




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.061652 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme