[SOLVED] Â List View as dropdown menu? |
4/20/2009 3:41:30 AM |
PHPRunner General questions | |
S
stevenf author
Hi, |
|
J
|
Jane 4/20/2009 |
Hi, |
S
|
stevenf author 4/21/2009 |
Hi, please check this thread: http://www.asprunner.com/forums/index.php?showtopic=2301
|
J
|
Jane 4/21/2009 |
Steven, |
S
|
stevenf author 4/21/2009 |
Steven, I'm not sure that I understand you correctly. How do you want to select search parameters? You can publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages and I'll try tp help you.
|
J
|
Jane 4/21/2009 |
Hi, //create dropdown box $str = ""; $str.= "<select onchange=\"window.location.href=this.options[this.selectedIndex].value;\"><option value=\"\">Please select</option>"; //select values from table 1 global $conn; $strSQL = "select page_id from table1"; $rs = db_query($strSQL,$conn); while ($data = db_fetch_array($rs)) $str.="<option value=\"table2_list.php?a=search&value=1&SearchFor=".$data["page_id"]."&SearchOption=Contains&SearchField=page_id\">".$data["page_id"]."</option>"; $str.="</select>"; echo $str; |
S
|
stevenf author 4/21/2009 |
Hi, here is just a sample:
|