By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,292 Members | 1,718 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,292 IT Pros & Developers. It's quick & easy.

Load Runner, Drop Down List

P: n/a
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
Share this Question
Share on Google+
2 Replies


P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.