473,320 Members | 1,945 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.

php drop-down menu

ok i need the coding for a drop-down menu that when a computer part is selected it automatically changes the price and specs of the computer. thanks
Jan 21 '07 #1
3 2027
ronverdonk
4,258 Expert 4TB
ok i need the coding for a drop-down menu that when a computer part is selected it automatically changes the price and specs of the computer. thanks
What is "need the coding" mean? Do you expect the team to deliver code-on-demand? This is a programmer help programmer forum, not a code factory.
You should have written at least some of that code yourself. Then, when you run into problems, we can assist you with your code.

Ronald :cool:
Jan 21 '07 #2
ok sorry about that here is the drop down menu and the text field. i need help with making the "test 1" and "cost" going into the text box when u select it. thanks

Expand|Select|Wrap|Line Numbers
  1. <form id="form1" name="form1" method="post" action="">
  2.   <label>
  3.   <select name="select">
  4.     <option value="100" selected="selected" desc="test 1" cost="50">test 1</option>
  5.     <option value="101" desc="test 2" cost="100">test 2</option>
  6.     <option value="102" desc=test"test 3" cost="800">test 3</option>
  7.   </select>
  8.   </label>
  9.   <label></label>
  10.   <input name="textfield" type="text" value="" size="10" />
  11. </form>
Jan 21 '07 #3
ronverdonk
4,258 Expert 4TB
ok sorry about that here is the drop down menu and the text field. i need help with making the "test 1" and "cost" going into the text box when u select it. thanks

Expand|Select|Wrap|Line Numbers
  1. <form id="form1" name="form1" method="post" action="">
  2.   <label>
  3.   <select name="select">
  4.     <option value="100" selected="selected" desc="test 1" cost="50">test 1</option>
  5.     <option value="101" desc="test 2" cost="100">test 2</option>
  6.     <option value="102" desc=test"test 3" cost="800">test 3</option>
  7.   </select>
  8.   </label>
  9.   <label></label>
  10.   <input name="textfield" type="text" value="" size="10" />
  11. </form>
That is not a valid form and will never be. Something like
Expand|Select|Wrap|Line Numbers
  1. desc="xxxx" 
  2. cost="yyy">
are not valid html attributes of the <select> tag. I advise you to read the html manual for the specification of that tag. The label above the select has no function and the empty <label></label> under the dropdown has no use. Also, what do you want to accomplish when you don't even submit the form?

Are you pulling my leg?

Ronald :cool:
Jan 21 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

10
by: BuddhaBuddy | last post by:
Platform is DB2/NT 7.2.9 The table was created like this: CREATE TABLE MYTEST ( MYTESTOID bigint not null primary key, FK_OTHEROID bigint not null references other, FK_ANOTHEROID bigint not...
0
by: Lauren Quantrell | last post by:
I'm trying to drop a file from Windows Explorer (or desktop, etc.) onto a field in Access2K and capture the full file path. I found an posting below that says this is possible but I cannot...
6
by: jojobar | last post by:
Hello, I look at the asp.net 2.0 web parts tutorial on the asp.net web site. I tried to run it under firefox browser but it did not run. If I want to use this feature in a commercial product...
15
by: uwcssa | last post by:
I try to drop a table as: I got: During SQL processing it returned: SQL0478N The object type "TABLE" cannot be dropped because there is an object "sch.SQL070515104729271", of type "FUNCTION",...
5
by: Romulo NF | last post by:
Greetings, I´m back here to show the new version of the drag & drop table columns (original script ). I´ve found some issues with the old script, specially when trying to use 2 tables with...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
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: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
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...
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
0
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
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.