Jump to content

Displaying all the values of a drop-down menu's options

Recommended Posts

I am trying to display all the values of a drop-down menu's options. The drop down menu uses an onChange event that is as follows:


And when it's selected and the search button is clicked it displays the business info of a company on the page the user is directed to. How can i display the business info for all the selections in the drop down menu? What i've tried, but only displays the actual Name/Text of the business.

//$f = file_get_contents('http://****/business_directory_framed.asp'); //$p = file_put_contents('dir_detail_framed_asp.html', $f); $g = file_get_contents('dir_detail_framed_asp.html');$g = str_replace('action="business_detail_framed.asp"','action="http://****/business_detail_framed.asp"',$g);echo $g;#	'/<option[^>]+value="(.*)">(.*)/' //$r = preg_match_all('/<option[^>]+value="([^"]*)">([^"]*)/', $g, $matches) ? $matches[1] : '';$o = preg_match('/b1.input1.value=b1.select_business[this.selectedIndex].text/', $g, $matches) ? $matches[1] : '';print_r ($matches);

Edited by IanArcher
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...