Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 5th, 2006, 06:36 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Reloading page when option selected in dropdown

Hi,

I have 10 module names in a dropdown and each module name has certain count values associated with it. I would like to have the counts loaded depending on the option selected from the dropdown box. I'm using php and javascript.

Any help is appreciated.

-Thanks,
Chandu

Reply With Quote
  #2 (permalink)  
Old March 10th, 2006, 04:52 AM
Friend of Wrox
 
Join Date: Nov 2005
Location: Rotterdam, , Netherlands.
Posts: 223
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi chandrasekhar200,

try this
Code:
<script>
function refreshPage(passValue){
//do something in this function with the value
 window.location="the_page_self.php?val="+passValue
}
</script>


<select onchange="refreshPage(this.value);">
  <option></option>
</select>



__________________________________________________ ________
This is my junk I'm gona eat it
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
option selected from a select box Adam H-W Classic ASP Basics 3 December 11th, 2006 11:09 AM
reloading a page hubbe ASP.NET 1.0 and 1.1 Basics 0 April 13th, 2006 01:46 PM
syntax error on <option selected="selected"> hamid HTML Code Clinic 1 October 13th, 2004 09:20 AM
Fire a macro when an option is selected ashu_gupta75 Excel VBA 1 August 12th, 2004 12:42 AM
Page Reloading mahulda ASP.NET 1.0 and 1.1 Basics 5 April 21st, 2004 10:22 AM



All times are GMT -4. The time now is 03:14 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.