473,320 Members | 1,993 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

problem with select menu

I have a problem that I hope someone can explain why it is happening
and how to fix it.
In order to explain my problem, I am going to define the word
"container" which i will use often in this post. A container is this:
<CONTAINER>, in other words all the characters between the < and > and
including the < and > signs. (What is the correct term for this
anyhow?) The container is used for placing data from a cgi script on
to a webpage.

Here is my problem: when I put 2 of the same containers very close
together on a page, the first container is filled with data and the
second isn't.
Here is an example:
<select name=PROV>
<option name="value" value="<PROV>" selected><PROV></option>

In the above example there are 2 <PROV> containers that I want to get
filled with the same data. However, only the first container is filled
and the second is left unfilled. This is what it looks like when I
view source of the page:
<select name=PROV>
<option name="value" value="BC" selected><PROV></option>

Yet, if I separate the <PROV> containers by putting the second one
somewhere else on the page, both containers are filled with the data
"BC". WHY?

Is this a widely known problem or is it a unique problem that I am
having because I have a coding error somewhere the page.

All questions and comments are greatly appreciated.
Blaine
Jul 20 '05 #1
3 1712

"blaine YOung" <by****@ynotbid.com> wrote in message
news:dc*************************@posting.google.co m...
I have a problem that I hope someone can explain why it is happening
and how to fix it.
In order to explain my problem, I am going to define the word
"container" which i will use often in this post. A container is this:
<CONTAINER>, in other words all the characters between the < and > and
including the < and > signs. (What is the correct term for this
anyhow?)
"Tag". I'm curious how you learned HTML without this most basic HTML term!
The container is used for placing data from a cgi script on
to a webpage.

Here is my problem: when I put 2 of the same containers very close
together on a page, the first container is filled with data and the
second isn't.
Here is an example:
<select name=PROV>
<option name="value" value="<PROV>" selected><PROV></option>
To include the < and > symbols in an HTML page as text or as attribute
values, you need to replace them with &lt; and &gt; respectively.

<option name="value" value="&lt;PROV&gt;" selected>&lt;PROV&gt;</option>
In the above example there are 2 <PROV> containers
What do you mean by <PROV> containers? You have two SELECT lists with the
same name?

that I want to get
filled with the same data. However, only the first container is filled
and the second is left unfilled. This is what it looks like when I
view source of the page:
<select name=PROV>
<option name="value" value="BC" selected><PROV></option>

Yet, if I separate the <PROV> containers by putting the second one
somewhere else on the page, both containers are filled with the data
"BC". WHY?

Is this a widely known problem or is it a unique problem that I am
having because I have a coding error somewhere the page.

All questions and comments are greatly appreciated.
Blaine


Jul 20 '05 #2
On 11 Aug 2004 14:29:21 -0700, blaine YOung <by****@ynotbid.com> wrote:
I have a problem that I hope someone can explain why it is happening
and how to fix it.
In order to explain my problem, I am going to define the word
"container" which i will use often in this post. A container is this:
<CONTAINER>, in other words all the characters between the < and > and
including the < and > signs. (What is the correct term for this
anyhow?) The container is used for placing data from a cgi script on
to a webpage.
It's a tag.
Here is my problem: when I put 2 of the same containers very close
together on a page, the first container is filled with data and the
second isn't.
Here is an example:
<select name=PROV>
<option name="value" value="<PROV>" selected><PROV></option>


Problem is that < means a tag has started. When you write <PROV> you are
using poor syntax. The first instance is seemingly a tag within a tag,
which makes no sense. The second is an apparent empty <PROV> tag, which
doesn't exist.

Who taught you that <PROV> would ever be legitimate in a webpage? Shoot
them.
Jul 20 '05 #3
by****@ynotbid.com (blaine YOung) wrote in message news:<dc*************************@posting.google.c om>...
I have a problem that I hope someone can explain why it is happening
and how to fix it.
In order to explain my problem, I am going to define the word
"container" which i will use often in this post. A container is this:
<CONTAINER>, in other words all the characters between the < and > and
including the < and > signs. (What is the correct term for this
anyhow?) The container is used for placing data from a cgi script on
to a webpage.

Here is my problem: when I put 2 of the same containers very close
together on a page, the first container is filled with data and the
second isn't.
Here is an example:
<select name=PROV>
<option name="value" value="<PROV>" selected><PROV></option>

In the above example there are 2 <PROV> containers that I want to get
filled with the same data. However, only the first container is filled
and the second is left unfilled. This is what it looks like when I
view source of the page:
<select name=PROV>
<option name="value" value="BC" selected><PROV></option>

Yet, if I separate the <PROV> containers by putting the second one
somewhere else on the page, both containers are filled with the data
"BC". WHY?

Is this a widely known problem or is it a unique problem that I am
having because I have a coding error somewhere the page.

All questions and comments are greatly appreciated.
Blaine


Thanks Harlan and Neal for your replies.

A little background info: a programmer wrote the cgi script (C) and
html for me. He has since moved on and now I am learning it for
myself, by looking at his his work and by reading books.

I know what a tag is. I believe tags are predined and one can't make
up their own - correct me if I'm wrong. I intentionally called <PROV>
a container because when the page it is used in is generated by the
cgi script, the parse script looks for <PROV> and fills it with data
from the database. Here is the specific line that does that:

else if (ParseHtml(stdout,command,"<PROV>")==1) printf("%s",
province);

Since I posted yesterday though, I decided to just delete that section
of the page because it was somewhat redundant and I can make do
without it.

That said, I am still interested to know the correct term for
<I_AM_A_SPOT_THAT_GETS_FILLED_WITH_DATA_FROM_THE_D B>. Is it still a
tag? Should I ask on the cgi authoring group instead?

Blaine
Jul 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
7
by: Brad | last post by:
When debugging my current web project, in VS2003, I found I had lost the ability to drill down on watch objects in the Watch Window; I could only view the single value specific watch objects. ...
0
by: Lucas, Todd | last post by:
Hello everyone! I'm having a problem with a WebControl that I'm designing for a Menu. I've been at it for about 3 weeks now, and can't seem to get around this problem. So I'm hoping that someone...
2
by: ha_shaikh | last post by:
In our web application(ASP.Net), we have database driven menus that are of dropdown style on getting focus (a requirement). We've used Javascript Menu Object for creating these menus. On different...
4
by: snowweb | last post by:
I am trying to implement a CSS hierarchical unfolding menu on a site. The thing is, it needs to be dynamically populated from the results of a database query. I previously had the menu working but...
5
by: lightgram | last post by:
Hi I have a problem, which after browsing through Google, seems to be fairly common. However having tried most suggestions I am still getting the problem. I have a menu bar across the top...
2
by: Ravi Joshi | last post by:
The menu on my site works fine in IE6 and Firefox. In IE7, there is a problem with the menu: when you mouse over the various main catagories, the sub-catagories all appear to the right as they...
1
by: raghuvarmabh | last post by:
I am generating dynamic menu using css.the menus are loaded from data base at start up.But i am having some serious problems. 1.The menu is unable to roll over select boxes in IE6.This is very...
1
kiemxai
by: kiemxai | last post by:
you see that,i did correct or not? PROBLEM ANALYSIS For an introduction to program transaction journal, see the background section of assignment . Not only transaction journal, but also inventory...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.