473,799 Members | 3,224 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drop down select

For the form I need to create drop down select with say five different
options. There also should be possibility to enter own option if one is not
listed. How can I do it.?
Thank you in advance for any hint,
emanuel
Jul 17 '05 #1
4 2848
Nanos wrote:
For the form I need to create drop down select with say five different
options. There also should be possibility to enter own option if one is not
listed. How can I do it.?
Thank you in advance for any hint,
emanuel


This could be construed as an HTML-only question, in which case you are in the
wrong group. Or it could be PHP, but you have not provided us an example of your
attempt at resolving the problem. The web is repleat with example code, this
news group is repleat with example code... so, in this case, I am going to refer
you to 2 resources. Google and << http://www.php.net/en/manual/ >>

If you haven't thought to use either of these 2 resources, I would give serious
reconsideration in continuing in this line of work.

--
Michael Austin.
Consultant - Available.
Donations welcomed. Http://www.firstdbasource.com/donations.html
:)
Jul 17 '05 #2
"Nanos" wrote:
For the form I need to create drop down select with say five different options. There also should be possibility to enter own option if one is not
listed. How can I do it.?
Thank you in advance for any hint,
emanuel


Nanos, I have not seen drop down menus and an optional entry combined.
What I have seen is a drop down menu, and a text box for different
entries. Search on google for "drop down menu" and also for "text
box". You need to create basic drop down menus using html, and then
learn how to use php to dynamically generate them and then how to
process the resulting user input.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-Drop-sel...ict132812.html
Visit Topic URL to contact author (reg. req'd). Report abuse: http://www.dbForumz.com/eform.php?p=444029
Jul 17 '05 #3
Thank you Steve,
I found some solution - but it is not to elegant. I remember that you
could do it in ColdFusion so I thought that there is some trick also
available in PHP. I know how to create drop down menus and dynamically
populate them from DB - have several production sites running. But looks
like I need to look for different solution - like adding own option through
admin interface.
Thank you anyway for your answer,
Emanuel
"steve" <Us************ @dbForumz.com> wrote in message
news:10******** *****@news.supe rnews.com...
"Nanos" wrote:
> For the form I need to create drop down select with say five

different
> options. There also should be possibility to enter own option if

one
> is not
> listed. How can I do it.?
> Thank you in advance for any hint,
> emanuel


Nanos, I have not seen drop down menus and an optional entry combined.
What I have seen is a drop down menu, and a text box for different
entries. Search on google for "drop down menu" and also for "text
box". You need to create basic drop down menus using html, and then
learn how to use php to dynamically generate them and then how to
process the resulting user input.

--
http://www.dbForumz.com/ This article was posted by author's request
Articles individually checked for conformance to usenet standards
Topic URL: http://www.dbForumz.com/PHP-Drop-sel...ict132812.html
Visit Topic URL to contact author (reg. req'd). Report abuse:

http://www.dbForumz.com/eform.php?p=444029
Jul 17 '05 #4
Michael,
I know how to look in Google and I know where to find PHP manual. I think
that I described my problem clearly and I know I am in right group. If you
would use Google you would see that there were similar questions asked but
the solutions were not to elegant.
So, I am in right group becouse you can not do it in HTML. And what example
code you need to see (any HTML manual has an example of forms/drop down
boxes listed)?
Looks like you did not understand my questions. But thank you anyway for
great hints :)
Emanuel

"Michael Austin" <ma*****@firstd basource.com> wrote in message
news:NP******** **********@news svr23.news.prod igy.com...
Nanos wrote:
For the form I need to create drop down select with say five different
options. There also should be possibility to enter own option if one is not listed. How can I do it.?
Thank you in advance for any hint,
emanuel
This could be construed as an HTML-only question, in which case you are in

the wrong group. Or it could be PHP, but you have not provided us an example of your attempt at resolving the problem. The web is repleat with example code, this news group is repleat with example code... so, in this case, I am going to refer you to 2 resources. Google and << http://www.php.net/en/manual/ >>

If you haven't thought to use either of these 2 resources, I would give serious reconsideration in continuing in this line of work.

--
Michael Austin.
Consultant - Available.
Donations welcomed. Http://www.firstdbasource.com/donations.html
:)

Jul 17 '05 #5

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

Similar topics

5
5898
by: Jim Bo | last post by:
Hi, I have a drop down menu that is being populated by a query to the access database ---- Code --- Skill needed <SELECT size="1" NAME="SkillType" VALUE="SkillType"> <OPTION> <%=SkillType%>
2
11062
by: ehm | last post by:
I am working on creating an editable grid (for use in adding, deleting, and editing rows back to an Oracle database). I have a JSP that posts back to a servlet, which in turns posts to a WebLogic SFSB and, from there, to the database. On the front end, all cells appear as text fields. However, for certain cells, when the user clicks on the cell, the text field turns into a drop-down field (i.e. Select object), defaulting to the value...
4
6317
by: Dan | last post by:
Can anyone offer suggestions on how to do this or if it is possible? I have a form that uses a drop down box and 2 text fields. What I am trying to do is have the value of each text box set by the choice from the drop down box. Something like: <form name="populatefrm" id="contactfrm" method="post"
1
2913
by: Dan | last post by:
This is one that has me stumped and I need an expert's input. Any ideas why the values from the second script-generated drop down list isn't recognized by the script to add time values to the text boxes? What this script is suppose to do is change the value of a second drop down list based on the selection from the first. Then a value is chosen from the script generated drop down list in the
2
12624
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will select any skill in 1st drop down list then i'll select % of this skill in the 2nd list box , based on the percentage i've selected in the 2nd list box it has to display 2 sets of drop down list boxes at run time one for selecting skill and
5
4233
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1); System.Data.SqlClient.SqlCommand dbCommand1 = new System.Data.SqlClient.SqlCommand();
3
2997
by: John Walker | last post by:
Hi, On an ASP.NET page I have a drop down list control. When the user pulls down the list and makes a selection, I perform validation, and if the validation fails I want the selected item in the drop down box to go back to what the value was before the user tried to change it, but at that point I will not know what the original value was. Or is there a drop down control "revert" method, or is there any way of knowing what the original...
7
2440
by: callawayglfr | last post by:
I am building a database in access where I have a drop down box that relates to a text box, that part I have working but when someone selects information from the first drop down I need it to limit the second drop down to just the related information. Explaining this is obviously challeging. So I'll try to draw a picture: (drop down 1) Select number --- once selected description is populated in text box (drop down 2) based on first...
1
5083
by: sparksol | last post by:
I have a form with a drop down box. If you select an option in the drop down box (depending which option is selected) one or two textbox(es) and a submit button display. I would like to keep the textbox(es) and the submit button showing until another option is selected. Also the data that's submitted is showing on the form page. Here's an example - I need the code below to do this: 1. I go to the page - I see a drop down box. 2. I...
11
4645
by: tokcy | last post by:
Hi everyone, I am new in php and ajax, i am facing the prob while i click on element of first drop down then in second dropdown all element showl come from database. I mean i have three dropdown 1. category which comes from database 2. brand which comes from databse according to content of first dropdown . and 3. price which is static. when i am doing these things without ajax on every onChange() thw whole page is refreshing that i do not...
0
9685
marktang
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...
0
9538
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10247
jinu1996
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...
0
10023
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9067
agi2029
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...
1
7561
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5459
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...
0
5583
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2935
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.