Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Button Problem: calling on IDs from a specific table

    I have a table with tabs on it that calls different php files once the tab is clicked and on top of the table I have a drop list and a button. the whole table has 5 tabs and in there are 15 unique id with information on each tab that the table show when you click on the tab. The drop down list is a selection that you choose from of each of the 15 unique IDs. Once you choose one then click the button you should then only see that specific information about that particular id. (It can be in the table where you click each tab or all of it on one page I dont care.) So I need to get this button to work. I am very unfamiliar with buttons (thats why I am posting this) and I hope someone can help me
    Code:
    <form id="projects" method="post" action="project.php">
    <select id="project_list" name="proj_list">
    	<optgroup label="projects">
    <?php 
    	// Display the details of each event in a table
    	while ( $option = mysql_fetch_array($result) ) {
        	echo("<option label=" . $option["proj_title"] . 
    			"value=" . $option["ID"] . ">" . $option["proj_title"] . "</option>");
    	}
    ?>
    	</optgroup>
    
    </select>
    
    	<input type="button" VALUE="GO"
    	onClick=location("****Do not know what to put here******) /> 
    
    	 
    <?
      
    endif;
    ?>
    
    <div id="tabcontainer">
    	<ul id='tabs' class='shadetabs'>
    <?php 
    	// Populate tabs with data related to the selected project
    	echo ("<li><a href='project.php' rel='container' class='selected'>Project</a></li>");
    	echo ("<li><a href='capability.php' rel='container'>Demo Capability</a></li>");
    	echo ("<li><a href='approach.php' rel='container'>Approach</a></li>");
    	echo ("<li><a href='venue.php' rel='container'>Venue/Trade Shows</a></li>");
    	echo ("<li><a href='financials.php' rel='container'>Financials</a></li>");
    
    ?>
    	</ul>
    
    <!--
    	<ul id='tabs' class='shadetabs'>
    	<li><a href='project.php' rel='container' class='selected'>Project</a></li>
    	<li><a href='capability.php' rel='container'>Demo Capability</a></li>
    	<li><a href='approach.php' rel='container'>Approach</a></li>
    	<li><a href='venue.php' rel='container'>Venue/Trade Shows</a></li>
    	<li><a href='financials.php' rel='container'>Financials</a></li>
    	</ul>
    -->
    
    
    
    <div id="divcontainer" style="border:1px solid gray; width:600px; margin-bottom: 1em; padding: 5px">
    <p>Please select a project using the drop-down menu above.  Use the tabs to view information about the selected project.</p>
    </div>
    
    <script type="text/javascript">
    
    var countries=new ddajaxtabs("tabs", "divcontainer")
    countries.setpersist(true)
    countries.setselectedClassTarget("link") //"link" or "linkparent"
    countries.init()
    
    </script>
    
    </div>
    Last edited by Kor; 12-03-2009 at 11:12 AM. Reason: wrap the code [code][/code]


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •