For a form POST, what's the difference between:
1. <option</option>
2. <option>  ;</option>
--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288 9 3683
On May 10, 9:24 am, Man-wai Chang <toylet.toy...@ gmail.comwrote:
For a form POST, what's the difference between:
1. <option</option>
2. <option>  ;</option>
One contains a space, one contains a non-breaking space.
Neither are likely to be useful values to send to the server.
--
David Dorward
David Dorward wrote:
On May 10, 9:24 am, Man-wai Chang <toylet.toy...@ gmail.comwrote:
>For a form POST, what's the difference between:
1. <option</option> 2. <option>  ;</option>
One contains a space, one contains a non-breaking space.
non-breaking space is not the same as a space??
--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
Man-wai Chang wrote:
David Dorward wrote:
>On May 10, 9:24 am, Man-wai Chang <toylet.toy...@ gmail.comwrote:
>>For a form POST, what's the difference between:
1. <option</option> 2. <option>  ;</option>
One contains a space, one contains a non-breaking space.
non-breaking space is not the same as a space??
a space is "breakable" and and a non-breaking is not.
space = ASCII 20 or 0x20
no-break space = ASCII 160 or 0xA0
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
space = ASCII 20 or 0x20
no-break space = ASCII 160 or 0xA0
Thank you.
--
iTech Consulting Services Limited
Expert in ePOS (Point-Of-Sales) solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
On 2007-05-11, Jonathan N. Little <lw*****@centra lva.netwrote:
Man-wai Chang wrote:
>David Dorward wrote:
>>On May 10, 9:24 am, Man-wai Chang <toylet.toy...@ gmail.comwrote: For a form POST, what's the difference between:
1. <option</option> 2. <option>  ;</option>
One contains a space, one contains a non-breaking space.
non-breaking space is not the same as a space??
a space is "breakable" and and a non-breaking is not.
space = ASCII 20 or 0x20
no-break space = ASCII 160 or 0xA0
Not ASCII, surely? It's
U+00A0
UTF-8: 0xC2 0xA0
Decimal entity reference:
and appears in a section called "Latin 1 Supplement".
Ben C <sp******@spam. eggswrites:
On 2007-05-11, Jonathan N. Little <lw*****@centra lva.netwrote:
>no-break space = ASCII 160 or 0xA0
Not ASCII, surely?
Certainly not.
ASCII is 7-bit, from 0 to 127, or 0x00 to 0x7f.
sherm--
--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
Ben C wrote:
Not ASCII, surely? It's
U+00A0
UTF-8: 0xC2 0xA0
Decimal entity reference:
and appears in a section called "Latin 1 Supplement".
Pardon: ASCII 0x20 = space, but 0xA0 = an 'a' with acute accent, á
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO http://www.LittleWorksStudio.com
On 2007-05-11, Jonathan N. Little <lw*****@centra lva.netwrote:
Ben C wrote:
>Not ASCII, surely? It's
U+00A0 UTF-8: 0xC2 0xA0 Decimal entity reference:
and appears in a section called "Latin 1 Supplement".
Pardon: ASCII 0x20 = space, but 0xA0 = an 'a' with acute accent, á
I think the point is, anything >0x7f is not ASCII. 0xA0 is nbsp in
Latin-1 supplement, but a-acute in some other character set (and who
knows maybe something else in another Latin-variant, like that Danish o
with a slash through it etc.).
Scripsit Jonathan N. Little:
>non-breaking space is not the same as a space??
a space is "breakable" and and a non-breaking is not.
They are two distinct characters, though in Unicode, the no-break space
U+00A0 is compatibility equivalent to <noBreakU+002 0 space. Thus, in
principle, the main difference is in line breaking properties. In practice,
other differences can be more important, such as special treatment of U+00A0
as table cell content by web browsers.
Technically, when appearing in an <optionelemen t, the difference of the
codes of the characters is important, since it's the code that is sent as
part of the form data. The rest depends on what the form handler does with
the data.
But what could the difference matter when the character is the sole content
of an <optionelemen t, and why would an author use such a degenerated
element? I'm afraid the OP is getting farther from his original problem and
potentially generating new problems. Explaining the _real_ problem might be
a good start.
--
Jukka K. Korpela ("Yucca") http://www.cs.tut.fi/~jkorpela/ This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andrea |
last post by:
Hi,
I'm trying to emulate part of our client-server application as a web
site so customers can use it, and I'm stuck when it comes to
re-ordering items in a list.
Basically we have a list of available articles ("availableItems") and
a list of articles already in an issue ("selectedItems"). What I want
is to be able to move articles freely between the two lists and then
on submission add them to the issue (which I can), but also move...
|
by: Ang Talunin |
last post by:
Hey,
I wondering if it's possible to retrieve all the <option>-fields from a
<select> when posting a <form> to a php file
Example:
I've got a form like this:
<form action = phpfile.php method=post >
<select name= "name">
|
by: Chris Fink |
last post by:
Does anyone know it is possible to include a small image(.gif .jpeg)
within a <SELECT><option> so that the user would see the option text as
well as a little image(icon) in the option? I know this is not an ASP.NET
related question, but I know this group is knowledgeable and quick with
responses.
Thanks
|
by: joseph.lindley |
last post by:
Forgive me for I am a bit of a web-dev novice - but I'm not doing too
bad.
I'm currently working with a bit of javascript to dynamically add
<option>s into a select box. My code currently works fine in Internet
Explorer, however in Firefox the dropdown only displays the first
option in the list, and when clicked the other values aren't displayed.
Here is the code;
|
by: frey |
last post by:
i tried to create a dropdown menu and use the option as a control to
change content inside another text area
the code is like this:
<select name="xxxx"><option onclick="changeunitprice(29.87)"
value="1744"/>
the function changeunitprice() is called when an option is selected
| |
by: Man-wai Chang |
last post by:
--
iTech Consulting Co., Ltd.
Expert of ePOS solutions
Website: http://www.itech.com.hk (IE only)
Tel: (852)2325 3883 Fax: (852)2325 8288
|
by: Shrek |
last post by:
I have a drop down on a web page and want to change the cursor from default to pointer, so my style definition has
style ="cursor: pointer;"
the drop down though fails to change from the default curor. I've tryed applying the style to the <select> tag and to the <option> tags to no avail.
|
by: pplers |
last post by:
Here is config.php:
<?php //The vars are all ok.
$dbhost = 'localhost';
$dbname = 'forum';
$dbuser = 'toor';
$dbpass = '';
?>
Here is a part of functions.php:
<? require "config.php"; //It is in the same directory.
|
by: The Natural Philosopher |
last post by:
This is a nasty one and I can't see my way out of it.
I have a bunch of select statements in a form, and each select statement
has an onchange="do_something(this)" in it, and this works
nicely..except when there is only ONE OPTION in a given select.
It seems you cannot 'onchange' a single option!
Well, that is reasonable.
The trouble is I have no way of selecting it since the form itself is a
|
by: mikek12004 |
last post by:
In a form I have 5 elements (e.g. pictures) and I wish for the user to be able to set the order of appearance. For this I have for each picture a select box (names select1 to select5) with "please select something" as preselected and the rest options are values from 1 to 5. I want when a user selects a number a.k.a ans <option> that number/<option> to be removed from the rest of the select boxes and when the user selects another number the...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |