473,406 Members | 2,273 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,406 software developers and data experts.

Load Runner, Drop Down List

Can anyone send me the script for supplying the values in drop down
list of the web page?
I have couple of drop down list controls in my web page. I need to
supply multiple values for each dropdown list in my script. How can i
do that? can you send me the script for this?

Thanks in advance
reddy

Feb 22 '06 #1
2 2969
kavi wrote:
Can anyone send me the script for supplying the values in drop down
list of the web page?
I have couple of drop down list controls in my web page. I need to
supply multiple values for each dropdown list in my script. How can i
do that? can you send me the script for this?

Thanks in advance
reddy


Hi,

What is excactly not working right now?

What kind of script do you want?

Here is one:

<select name="age">
<?
for ($i=1;$i<100;$i++){
?>
<OPTION value="<?= $i ?>"><?= $i ?>
<?
}
?>
</select>

Does that help?

Erwin Moller
Feb 22 '06 #2
Erwin Moller wrote:
kavi wrote:
Can anyone send me the script for supplying the values in drop down
list of the web page?
I have couple of drop down list controls in my web page. I need to
supply multiple values for each dropdown list in my script. How can i
do that? can you send me the script for this?

Thanks in advance
reddy
Hi,

What is excactly not working right now?

What kind of script do you want?

Here is one:


Aha, I think I know what you mean now: You want a selectbox where the user
can select MULTIPLE values?

Just add the word MULTIPLE to the select, like this:

<select name="age[]" MULTIPLE>

Also, if you want a PHP-script to receive the values, change the name of the
element in something that ends with [], like I did with age.

If you want to retrieve the values in your php-script, get them like this:

$receivedage = $_POST["age"];

Now $receivedage contains an array (containing 0,1, or more elements)
Regards,
Erwin Moller

<select name="age">
<?
for ($i=1;$i<100;$i++){
?>
<OPTION value="<?= $i ?>"><?= $i ?>
<?
}
?>
</select>

Does that help?

Erwin Moller


Feb 22 '06 #3

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

Similar topics

9
by: John Kirksey | last post by:
I have a page that uses an in-place editable DataGrid that supports sorting and paging. EnableViewState is turned ON. At the top of the page are several search fields that allow the user to filter...
3
by: Don Wash | last post by:
Hi There! I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to widen the Drop down box's Pull-Down list's width? I'm not talking about the Drop-down box's width but the box...
2
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...
1
by: pmelanso | last post by:
Hello, I have a drop down list which is dynatically loaded from a database and I have a second drop down list that is also dynatically loaded depending on what is selected in the first drop down...
0
by: kavi | last post by:
Can anyone send me the script for supplying the values in drop down list of the web page? I have couple of drop down list controls in my web page. I need to supply multiple values for each...
8
by: Ed Dror | last post by:
Hi there ASP.NET 2.0 VB & SQL Express Lest take Northwind Categories Products as example I create a table that hold these two together and I create a stored procedure like select ProductID,...
1
by: inbamca | last post by:
Hi, Functionality is like when pressing 'CTRL+click' on drop down list in the main jsp page, a popup window appears with a list box contains all the values of the drop down clicked on the main page....
4
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
3
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the...
1
by: dmj07 | last post by:
Hi all, I was wondering of an easy way to set the selected value of a drop down list by using a value retrieved from the database. Here is my code: SqlCommand cmdUser = new...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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...
0
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...
0
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...
0
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...

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.