PHP: Dynamic Menu/List

I have a database that has a bunch of locations and I have
created a page using PHP that has a Dynamic Menu/list that pulls
the locations. Users have the option to select a location and
perform a search returning information. My problem is, I want to
create an option "Search All Locations." I have tried every special
character that I can think of and all results bring back nothing. I
am using Dreamweaver 8. I have pasted some of my code below:
<form id="form1" name="form1" method="get"
action="resultslocations.php">
<label></label>
<p>
<label>
<select name="neighborhood_list"
id="neighborhood_list">
<option value=""%"">Search by
Neighborhood</option>
<?php
do {
?>
<option value="<?php echo
$row_Location['Location']?>"><?php echo
$row_Location['Location']?></option>
<?php
} while ($row_Location = mysql_fetch_assoc($Location));
$rows = mysql_num_rows($Location);
if($rows > 0) {
mysql_data_seek($Location, 0);
$row_Location = mysql_fetch_assoc($Location);
?>
</select>
</label>
</p>
<p>
<label>
<input name="neighborhood_submit" type="submit"
id="neighborhood_submit" value="Submit" />
</label></p>
</form>

Here's the code again, it seems it was cut off.
<?php
require_once('../../Connections/ResturantsDatabase.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType,
$theDefinedValue = "", $theNotDefinedValue = "")
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
: $theValue;
$theValue = function_exists("mysql_real_escape_string") ?
mysql_real_escape_string($theValue) :
mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) .
"'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" :
"NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue :
$theNotDefinedValue;
break;
return $theValue;
mysql_select_db($database_ResturantsDatabase,
$ResturantsDatabase);
$query_Location = "SELECT Location FROM Locations ORDER BY
Location ASC";
$query_LocationFindAll = "Select * FROM Locations ORDER by
Location ASC";
$resultalllocations=mysql_query($query_LocationFindAll);
$Location = mysql_query($query_Location, $ResturantsDatabase)
or die(mysql_error());
$row_Location = mysql_fetch_assoc($Location);
$totalRows_Location = mysql_num_rows($Location);
mysql_select_db($database_ResturantsDatabase,
$ResturantsDatabase);
$query_Cuisine = "SELECT * FROM Cuisine ORDER BY Cuisine
ASC";
$Cuisine = mysql_query($query_Cuisine, $ResturantsDatabase)
or die(mysql_error());
$row_Cuisine = mysql_fetch_assoc($Cuisine);
$totalRows_Cuisine = mysql_num_rows($Cuisine);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<title>Wigz Menu Venu Homepage</title>
<script src="../../Scripts/AC_RunActiveContent.js"
type="text/javascript"></script>
<style type="text/css">
<!--
body {
background-image:url(../images/background.jpg);
background-repeat:repeat-x repeat-y;
background-position:top left;
a:link {
color:#FFFFFF;
text-decoration:none;
</style>
<link href="navigation_menu_class.css" rel="stylesheet"
type="text/css" />
</head>
<body>
<table width="70%" height="522" align="center"
bgcolor="#FFFFFF">
<tr>
<td height="206" colspan="2" valign="top"><div
align="center">
<table width="100%" border="0">
<tr>
<td width="80%"><div align="left"><img
src="../images/logo2.png" width="613" height="192" alt="Wigz Menu
Venue Logo" /></div></td>
<td width="20%" align="right" valign="top"><img
src="../images/menu2.jpg" alt="menu2" width="277"
height="201"/></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td width="20%" height="270" valign="top"
background="../images/menu_back.jpg"><div id="navigation">
<ul>
<li><a href="search.php">Browse
Menus</a></li>
<li><a href="#">Home</a></li>
<li><a
href="advertise.php">Advertise</a></li>
<li><a
href="recommendations.php">Recommendations</a></li>
<li><a href="media.php">Media
Kit</a></li>
<li><a href="map.php">Site
Map</a></li>
<li><a href="about.php">About
Us</a></li>
<li><a href="contact.php">Contact
Us</a></li>
</ul>
</div></td>
<td width="80%" valign="top"><table width="100%"
border="0" background="../images/background.jpg">
<tr>
<td width="50%"><div id="browsebyheaders">Browse
by Neighborhood</div></td>
<td width="50%"><div id="browsebyheaders">Browse
by Cuisine </div></td>
</tr>
</table>
<table width="70%" border="0" align="center">
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2"><font size="+2"><b>Wigz
Menu Venu.com </b></font> is your one-stop-shop to
locate resturants, menus, and bars in the Arlington, VA region.
Here you will be able to find your favorite resturant's contact
information along with viewing or downloading their current menu.
To begin your search, select one of the two search options below.
You may search by neighborhood or by food cuisine. </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td width="50%"><div align="center">
<form id="form1" name="form1" method="get"
action="resultslocations.php">
<label></label>
<p>
<label>
<select name="neighborhood_list"
id="neighborhood_list"></label>
<option value=""SearchALL""><Search by
Neighborhood></option>
IF (option value=="SearchALL")
{<?php echo$resultalllocations ?>
while ($row_Location = mysql_fetch_assoc($Location));
$rows = mysql_num_rows($Location);
if($rows > 0) {
mysql_data_seek($Location, 0);
$row_Location = mysql_fetch_assoc($Location);
?>
<?php
do {
?>
<option value="<?php echo
$row_Location['Location']?>"><?php echo
$row_Location['Location']?></option>
<?php
} while ($row_Location = mysql_fetch_assoc($Location));
$rows = mysql_num_rows($Location);
if($rows > 0) {
mysql_data_seek($Location, 0);
$row_Location = mysql_fetch_assoc($Location);
?>
</select>
</label>
</p>
<p>
<label>
<input name="neighborhood_submit" type="submit"
id="neighborhood_submit" value="Submit" />
</label></p>
</form>
</div></td>
<td width="50%"><div align="center">
<form id="form2" name="form2" method="get"
action="resultscuisine.php">
<label>
<select name="cuisine_list" id="cuisine_list">
<option value="'Cuisine'LIKE'*'">Search by
Cuisine</option>
<?php
do {
?><option value="<?php echo
$row_Cuisine['Cuisine']?>"><?php echo
$row_Cuisine['Cuisine']?></option>
<?php
} while ($row_Cuisine = mysql_fetch_assoc($Cuisine));
$rows = mysql_num_rows($Cuisine);
if($rows > 0) {
mysql_data_seek($Cuisine, 0);
$row_Cuisine = mysql_fetch_assoc($Cuisine);
?>
</select>
</label>
<label>
<br />
<br />
<input name="cuisine_submit" type="submit"
id="cuisine_submit" value="Submit" />
</label>
</form>
</div></td>
</tr>
</table>
<p> </p></td>
</tr>
</table>
<blockquote> </blockquote>
</body>
</html>
<?php
mysql_free_result($Location);
mysql_free_result($Cuisine);
?>

Similar Messages

  • Re-clarify--Urgent -- Can Apex create a dynamic menu list from table?

    Hi All,
    I am asked to investigate the possibility of using APEX to create a table data driven drop down menu, which means the menu list is dynimically generated from what is in the table. Eg. if there are 3 rows in the table, then the application will generate 3 list, if I add a row, then user will see 4 lists next time when the page is refreshed.
    Such menu list will need to be a home page, which means it is the first page to be called in the URL. If such function needs to be implemented in PL/SQL procedure, can the procedure be called in Apex's URL?
    The deadline is tomorrow and I have spent quite a bit of time but still have not had any clue. Could any one have such experience to point me a way to focus on please? Many thanks.
    Jennifer

    Hi All,
    I am asked to investigate the possibility of using APEX to create a table data driven drop down menu, which means the menu list is dynimically generated from what is in the table. Eg. if there are 3 rows in the table, then the application will generate 3 list, if I add a row, then user will see 4 lists next time when the page is refreshed.
    Such menu list will need to be a home page, which means it is the first page to be called in the URL. If such function needs to be implemented in PL/SQL procedure, can the procedure be called in Apex's URL?
    The deadline is tomorrow and I have spent quite a bit of time but still have not had any clue. Could any one have such experience to point me a way to focus on please? Many thanks.
    Jennifer

  • Creating dynamic nemu list

    hi ,
    I had created dynamic menu tabs and menu bars. but not able to create a mmenulist from it. can anyone send me the link where there is creation of dynamic menu list?

    OK I got it working... Mostly... I don't know if it was a combination of changes that made the difference, but I'll put down what I did. First, I switched my select object in the form bean into just a string type from a string array (it was allowing the selection of one entry anyways). Second, rather than just blanking out the options map, I also blanked out the select object [eg form.setSelect("")].
              Now when I select an entry and click delete, the resulting select list is short one visible element. However, you can still select the blank spot where that last entry used to be. However, this is not a huge issue for me now; I will investigate this at a later time.

  • Dynamic Form list/menu

    I'm trying to insert a dynamicly generated form list/menu dropdown item.
    Everything works but the list always shows me the last record from the database as the first item in the list (ASC or DESC).
    I want to put a dummy label as the first item in the list like: Select from list
    How can i do this, because even if i put a static value in the value list items, it still shows the last item from the recordset first instead of the static value.
    Does anybody have an idea how i can create a dynamic pulldown list in my form with the first item listed to be a statich dummy tekst or label like "Select from list etc"
    Thanks,

    I created a normal recordset with Dreamweaver getting tea
    m_id and team_names out of the database. Then i list the teamnames in a form list/
    menu (dropdown) to show all the available teams. Again it shows me the last record from the
    recordset as the first list item and i want a standard "select this" text or something default.
    The form code below is generated by dreamweaver itself. I already tried to also put one static value in the value list property but i get the same result. To me it looks like the while loop is overriding whatever you put as static text.
    <form id="form1" name="form1" method="post" action="">
      <label for="list_teams">Teams:</label>
      <select name="list_teams" id="list_teams">
        <?php
    do { 
    ?>
        <option value="<?php echo $row_Teams['team_id']?>"<?php if (!(strcmp($row_Teams['team_id'], $row_Teams['team_id']))) {echo "selected=\"selected\"";} ?>><?php echo $row_Teams['team_name']?></option>
        <?php
    } while ($row_Teams = mysql_fetch_assoc($Teams));
      $rows = mysql_num_rows($Teams);
      if($rows > 0) {
          mysql_data_seek($Teams, 0);
       $row_Teams = mysql_fetch_assoc($Teams);
    ?>
      </select>
    </form>

  • PHP dynamic content for form list field on tabbed panel

    I have been trying to use PHP dynamic content to populate a
    form list field. Works fine on a regular page, but doesn't seem to
    work (or works very erratically) if the form is on a tab of a Spry
    tabbed panel. Erratically means (as I've observed) the values will
    appear if the list field is the second on a tab but not the first.
    Haven't tried three on a tab... Anyone know if this is supposed to
    work?

    Thank You !!! to both of you above.
    Shant,
    The scheme youv'e proposed makes sense and I had thought of the same before posting the question. I already did a little POC on it but then realised this works if I can use complete list of values of 1st Field to decide the value of 2nd and so forth. But I rather need to know which one among those was clicked. Moreover, my right side list is usually not null when page loads for the first time (bcoz Field name is a path exp).
    Also, the real problem here is that, when I click on different values on the right side of multi-select(already selected values) of 1st Field, allowedValues and Derivation of 2nd should change. That GUI event is not capturable from whatever I've been able to read (onClick is not applicable for MultiSelect, and onChange doesn't serve my purpose, coz I need to know what value was clicked on).
    The solution I thought and implemented was to take the right side of multi-select, into an extra (read redundant), single-select Field. And then have the 2nd multi-select depend on it via Derivation and allowedValues.
    Having two redundant single-selects, isn't the most elegant solution but I can't think of anything better. Any thoughts ???
    If I'm not really overlooking something MultiSelect class should have an extra Property exposed....
    - AndyDev
    Edited by: AndyDev on Nov 6, 2007 2:04 PM

  • Dynamic select list crashes with php

    HI All,
    I can't seem to get a dynamic select list to work in
    dreamweaver. It completly crashes everytime I try adding it to my
    page. I found someone else in the forum who had the same problem
    but no one ever responded. I've tried several things including
    putting just the record set and dynamic select on it's own page
    with no other code on it. It still crashes DW. I also tried coding
    it myself by making a listmenu and modifying it so that the option
    value equals a PHP echo of a value. It crashed there too. Does
    anyone have a piece of code with a working dynamic select list that
    uses a record set that I could look at? That way I can see where
    I'm going wrong. All I'm trying to do is get a simple drop down
    select list of employee names so someone can choose their name to
    get commission. It's a one table, 2 fields (first & last name)
    record set.
    Using DW CS3, php & MySQL.,windows XP Pro
    Any help would be really appreciated!

    AthroughZ wrote:
    > I can't seem to get a dynamic select list to work in
    dreamweaver. It
    > completly crashes everytime I try adding it to my page.
    It looks as though you have a corrupt cache file. Follow
    troubleshooting
    step 4 in the following technote:
    http://www.adobe.com/go/tn_19105
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS4",
    "PHP Solutions" & "PHP Object-Oriented Solutions"
    http://foundationphp.com/

  • Using a Menu List to dynamically set text

    Hi,
    I want to create a menu list and depending on the selected
    element in the list, set some related text in a variety of
    different text fields. I've been looking at the various behaviours
    available on a menu list and I've noticed the attribute
    spry:selected as well both of which look relevant.
    I've been trawling the web to find some guidance but so far
    haven't found much. I guess I'm looking for some general guidance
    on best practice for achieving this. If anyone can point me in a
    good direction that would be great.
    Wisdom greatfully received.
    Chris

    Let's see your form. Tell us what you are trying to set and
    which field you
    are trying to affect.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "cjdanson" <[email protected]> wrote in
    message
    news:gpmn85$1hn$[email protected]..
    > Hi,
    >
    > I want to create a menu list and depending on the
    selected element in the
    > list, set some related text in a variety of different
    text fields. I've
    > been
    > looking at the various behaviours available on a menu
    list and I've
    > noticed the
    > attribute spry:selected as well both of which look
    relevant.
    >
    > I've been trawling the web to find some guidance but so
    far haven't found
    > much. I guess I'm looking for some general guidance on
    best practice for
    > achieving this. If anyone can point me in a good
    direction that would be
    > great.
    >
    > Wisdom greatfully received.
    >
    > Chris
    >

  • Multiple Menu List Selection question.

    In a form I have a multiple select list that's populated dynamically from a table, e.g. label = full name, value = name_id. I need to be able to insert both label and value into another table. Normally, selecting a label will insert the value, but what technique (short example, please) can I use to extract the label itself as well as it's value from the list?
    Thanks!

    Hi there,
    If you are prepared to consider a commercial solution then
    you might
    like to take a look at the WebAssist extension "Database
    Search"
    To learn more about this extension please visit the web
    address I have
    included below:
    http://www.webassist.com/professional/products/productdetails.asp?PID=72
    You might also like to consider our Dynamic dropdowns
    solution. To learn
    more about this product, take a look at this URL:
    http://www.webassist.com/professional/products/productdetails.asp?PID=1
    Feel free to contact me off list, if you would like to learn
    more about
    either of these or any other WebAssist software.
    Regards,
    Mark
    Mark Fletcher
    WebAssist.com
    MacPMH wrote:
    > Hi All,
    >
    > I am looking for a dreamweaver and/or PHP/MySQL tutorial
    and/or extension
    > and/or tool that can walk me through creating an
    advanced search page. For
    > example, I have multiple search criteria which allow
    users to select various
    > criteria:
    >
    > Menu/list #1 (Allows multiple)
    > Option 1, 2, 3?25
    >
    > Menu/list #2 (Allows multiple)
    > Option 1, 2, 3?50
    >
    > Menu/list #3 (Allows multiple)
    > Option 1, 2, 3?10
    >
    > Radio button (allows user to select the way the
    information is displayed)
    > By Date
    > By State
    > By Score
    > By whatever?
    >
    > Drop down (allows user to select how many records to
    display)
    > View 25
    > View 50
    > View 75
    > View 100
    > View ALL
    >
    > Any comments and suggestions would be greatly
    appreciated. BTW, I consider
    > myself a step above the beginner level - could consider
    myself an intermediate
    > user of Dreamweaver, PHP/MySQL so please be gentle
    >
    >

  • Advanced Searching  - Multiple Menu/List/Radio Button Criteria

    Hi All,
    I am looking for a dreamweaver and/or PHP/MySQL tutorial
    and/or extension and/or tool that can walk me through creating an
    advanced search page. For example, I have multiple search criteria
    which allow users to select various criteria:
    Menu/list #1 (Allows multiple)
    Option 1, 2, 3…25
    Menu/list #2 (Allows multiple)
    Option 1, 2, 3…50
    Menu/list #3 (Allows multiple)
    Option 1, 2, 3…10
    Radio button (allows user to select the way the information
    is displayed)
    By Date
    By State
    By Score
    By whatever…
    Drop down (allows user to select how many records to display)
    View 25
    View 50
    View 75
    View 100
    View ALL
    Any comments and suggestions would be greatly appreciated.
    BTW, I consider myself a step above the beginner level - could
    consider myself an intermediate user of Dreamweaver, PHP/MySQL so
    please be gentle

    Hi there,
    If you are prepared to consider a commercial solution then
    you might
    like to take a look at the WebAssist extension "Database
    Search"
    To learn more about this extension please visit the web
    address I have
    included below:
    http://www.webassist.com/professional/products/productdetails.asp?PID=72
    You might also like to consider our Dynamic dropdowns
    solution. To learn
    more about this product, take a look at this URL:
    http://www.webassist.com/professional/products/productdetails.asp?PID=1
    Feel free to contact me off list, if you would like to learn
    more about
    either of these or any other WebAssist software.
    Regards,
    Mark
    Mark Fletcher
    WebAssist.com
    MacPMH wrote:
    > Hi All,
    >
    > I am looking for a dreamweaver and/or PHP/MySQL tutorial
    and/or extension
    > and/or tool that can walk me through creating an
    advanced search page. For
    > example, I have multiple search criteria which allow
    users to select various
    > criteria:
    >
    > Menu/list #1 (Allows multiple)
    > Option 1, 2, 3?25
    >
    > Menu/list #2 (Allows multiple)
    > Option 1, 2, 3?50
    >
    > Menu/list #3 (Allows multiple)
    > Option 1, 2, 3?10
    >
    > Radio button (allows user to select the way the
    information is displayed)
    > By Date
    > By State
    > By Score
    > By whatever?
    >
    > Drop down (allows user to select how many records to
    display)
    > View 25
    > View 50
    > View 75
    > View 100
    > View ALL
    >
    > Any comments and suggestions would be greatly
    appreciated. BTW, I consider
    > myself a step above the beginner level - could consider
    myself an intermediate
    > user of Dreamweaver, PHP/MySQL so please be gentle
    >
    >

  • Dynamic select list: link to another page

    Hi
    Have following dynamic select list at the bottom in "product.php" page (www.dolls.com.sg)
    <div id="selectcat">
      <select name="Categories">
        <?php
    do { 
    ?>
        <option value="<?php echo $row_rsCategories['categoryName']?>"<?php if (!(strcmp($row_rsCategories['categoryName'], $row_rsCategories['categoryName']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsCategories['categoryName']?></option>
        <?php
    } while ($row_rsCategories = mysql_fetch_assoc($rsCategories));
      $rows = mysql_num_rows($rsCategories);
      if($rows > 0) {
          mysql_data_seek($rsCategories, 0);
       $row_rsCategories = mysql_fetch_assoc($rsCategories);
    ?>
      </select>
    My target is, whenever a visitor clicks on a category in the pull down menu, he is forwarded to the respective "categories.php" page.
    How can I do that?
    Thanks
    Helmut

    Change your code to this:
    <div id="selectcat">
    <form method="get" action="categories.php">
      <select name="Categories">
        <?php
    do { 
    ?>
        <option value="<?php echo $row_rsCategories['categoryName']?>">
        <?php echo $row_rsCategories['categoryName']?></option>
        <?php
    } while ($row_rsCategories = mysql_fetch_assoc($rsCategories));
      $rows = mysql_num_rows($rsCategories);
      if($rows > 0) {
          mysql_data_seek($rsCategories, 0);
       $row_rsCategories = mysql_fetch_assoc($rsCategories);
    ?>
      </select>
      <input type="submit" value="View Dolls">
    </form>
    </div>
    In categories.php, use $_GET['Categories'] to filter the recordset.

  • Menu/List Dreamweaver

    Hi guys,
    I have a table called agents I want to show the name of the agents in a menu in order to select one agent from that list.
    I added in a form the menu/list and added the value dynamically with a recordset, I have 14 items in that table but the menu/list is only showing 10.
    I would like to show the name of all the 14 agents.
    This is the code dreamweaver is generating, do I need to add something there?
    <select name="agente" id="agente">
                    <?php
    do { 
    ?>
                    <option value="<?php echo $row_nombreagenteingresar['nombre']?>"<?php if (!(strcmp($row_nombreagenteingresar['nombre'], $row_nombreagenteingresar['nombre']))) {echo "selected=\"selected\"";} ?>><?php echo $row_nombreagenteingresar['nombre']?></option>
                    <?php
    } while ($row_nombreagenteingresar = mysql_fetch_assoc($nombreagenteingresar));
      $rows = mysql_num_rows($nombreagenteingresar);
      if($rows > 0) {
          mysql_data_seek($nombreagenteingresar, 0);
           $row_nombreagenteingresar = mysql_fetch_assoc($nombreagenteingresar);
    ?>
                </select>
    Regards,

    Looks like you either...
    1. Haven't uploaded the re4.jpg image
    2. Uploaded it to the wrong location (the link says it should be in your site root)
    3. Uploaded the image with the wrong name (RE4.jpg and re4.jpg are the same on your local system, but on a server they're separate files)
    Actually, #3 is true, I found the image as RE4.jpg, but the link is to re4.jpg
    To avoid this in the future, make sure your files all use lowercase, alpha-numeric names. Avoid using spaces (use hyphens and underscores instead) and avoid special characters like #&$ all together.

  • Flex Table Add Row Issue with Dynamic Entry Lists in Visual Composer

    All,
    Your help would be kindly appreciated in resolving an 'Add Row'-issue within a Flex Table that uses Dynamic Entry Lists in Visual Composer. The issue here is as follows :
    When I use a [Local Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=O5hrG2aMxWZ84Mu1211193041]to populate a row field, the initial row and all next rows are emptied upon 'insert row', they loose their selected values and also the entry list values ('pull-down menus') are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    The initial row does [show the entry list values |http://www.postyourimage.com/view_image.php?img_id=2HybmEHAuQYs9cg1211192766]from the Local Dynamic Entry List based on the dynamically assigned input value; upon 'insert row' the entry lists are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    When using a [Global Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=m5p2KYuBb442dTq1211193501]to populate the row fields the Flex-table behaves normally as expected. Unfortunately with a Global Entry List it is not possible to dynamically assign a input value. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=U96V0zENCCyO3gA1211193157].
    Please also see the [issue summary image|http://www.postyourimage.com/view_image.php?img_id=06xti08tIEfely1211195178] I made to visualize the issue.  What I basically would like to know is whether this is a 'known issue' or not, or that it is an issue that can be fixed or whether there is an alternative workaround available ... I'm using Visual Composer 7.0 and the Portal is at SP 13.
    Many thanks,
    Freek

    Hi,
    you should be able to assign a dynamic value with global entry lists as well. If you say @myParam as dynamic value. VC will indicate in red letters, that the field @myParam is unknown. However, it will work, as long as @myParam is known in the form or table where you use the entry list.
    I have never heard of the problem that entry lists are emptied after "insert"-event.
    Kindes Regards,
    Benni

  • Flex Table Add Row Issue with Dynamic Entry Lists

    All,
    Your help would be kindly appreciated in resolving an 'Add Row'-issue within a Flex Table that uses Dynamic Entry Lists in Visual Composer. The issue here is as follows :
    When I use a [Local Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=O5hrG2aMxWZ84Mu1211193041]to populate a row field, the initial row and all next rows are emptied upon 'insert row', they loose their selected values and also the entry list values ('pull-down menus') are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    The initial row does [show the entry list values |http://www.postyourimage.com/view_image.php?img_id=2HybmEHAuQYs9cg1211192766]from the Local Dynamic Entry List based on the dynamically assigned input value; upon 'insert row' the entry lists are lost. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=FPLr2cABcgiHRou1211192889].
    When using a [Global Dynamic Entry List |http://www.postyourimage.com/view_image.php?img_id=m5p2KYuBb442dTq1211193501]to populate the row fields the Flex-table behaves normally as expected. Unfortunately with a Global Entry List it is not possible to dynamically assign a input value. Please also see [screenshot|http://www.postyourimage.com/view_image.php?img_id=U96V0zENCCyO3gA1211193157].
    Please also see the [issue summary image|http://www.postyourimage.com/view_image.php?img_id=06xti08tIEfely1211195178] I made to visualize the issue.  What I basically would like to know is whether this is a 'known issue' or not, or that it is an issue that can be fixed or whether there is an alternative workaround available ... I'm using Visual Composer 7.0 and the Portal is at SP 13.
    Many thanks,
    Freek

    Hi,
    you should be able to assign a dynamic value with global entry lists as well. If you say @myParam as dynamic value. VC will indicate in red letters, that the field @myParam is unknown. However, it will work, as long as @myParam is known in the form or table where you use the entry list.
    I have never heard of the problem that entry lists are emptied after "insert"-event.
    Kindes Regards,
    Benni

  • Dynamic category list link to product list page not working

    I have a dynamic catagory list that is populated from a mySQL db
    <?php do { ?>
              <li><a href="product-list.php?CatID=<?php echo $row_Recordset1['CatID']; ?>"><?php echo $row_Recordset1['CatName']; ?></a></li>
              <?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
    im not sure if the aboive is correct?
    i need to link it to the product page and just dispaly all the products in that catagory
    the product-list php code is
    $var1_Recordset1 = "-1";
    if (isset($_GET['CatID'])) {
      $var1_Recordset1 = $_GET['CatID'];
    mysql_select_db($database_lotties, $lotties);
    $query_Recordset1 = sprintf("SELECT * FROM lottieProducts, lottieCat WHERE lottieCat.CatID = lottieProducts.CatID AND lottieCat.CatID = %s", GetSQLValueString($var1_Recordset1, "int"));
    $Recordset1 = mysql_query($query_Recordset1, $lotties) or die(mysql_error());
    $row_Recordset1 = mysql_fetch_assoc($Recordset1);
    $totalRows_Recordset1 = mysql_num_rows($Recordset1);
    thanks in advance

    done it
    $varCat_rsProductData = "0";
    if (isset($_GET["cat"])) {
      $varCat_rsProductData = $_GET["cat"];
    mysql_select_db($database_lotties, $lotties);
    $query_rsProductData = sprintf("SELECT * FROM lottieProducts WHERE lottieProducts.CatID = %s", GetSQLValueString($varCat_rsProductData, "int"));
    $rsProductData = mysql_query($query_rsProductData, $lotties) or die(mysql_error());
    $row_rsProductData = mysql_fetch_assoc($rsProductData);
    $totalRows_rsProductData = mysql_num_rows($rsProductData);
    link from cat list
    <a href="product-list.php?cat=<?php echo $row_Recordset1['CatID']; ?>"><?php echo $row_Recordset1['CatName']; ?></a>

  • Validate Menu List in form.

    I was wondering if there is a way to validate a menu or list in a form. ie. at http://www.metrobham.org/register.html I would like to at least make the "Choose One" menu/list a required field as well as the "Age" and "Gender" fields.
    Thanks

    You can do it quickly and simply with javascript before the information is sent to your php processing script. I've validated the 'Choose One' select, the 'Gender' radio buttons and the 'Age' select. You can do the rest if you want but you will have to look at the code and see how it works. It's not that difficult when you see the pattern forming.
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Untitled Document</title>
    <!-- VALIDATE FORM  -->
    <script type="text/javascript">
    <!--
    function validateForm() {
    var choose = document.forms.form1.choose.value;
    // inform customer to provide their requirements
    if (choose == null || choose == "" || choose == "Please Choose")
    alert("Please choose from list provided");
    return false;
    var age = document.forms.form1.age.value;
    // inform customer to provide their age
    if (age == null || age == "" || age == "Select Age")
    alert("Please select Age");
    return false;
    // inform customer to provide their gender
    if(document.getElementById('gender_0').checked) {
    } else if(document.getElementById('gender_1').checked) {
    } else {
      alert ("You must select a Gender");
      return false;
    } // end function
    -->
    </script>
    </head>
    <body>
    <form id="form1" name="form1" method="post" action="registration.php" onsubmit="return validateForm()">
        <table width="100%" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td width="27%" align="right"><label for="choose">Choose One:</label></td>
            <td width="73%" align="left"><select name="choose" id="choose">
              <option value="Please Choose" selected="selected">Please Choose</option>
              <option value="baptism">Baptism</option>
              <option value="baby dedication">Baby Dedication</option>
              <option value="new member">New Member</option>
            </select></td>
          </tr>
          <tr>
            <td align="right"><label for="name2">Name:</label></td>
            <td align="left"><input name="name" type="text" id="name2" size="40" /></td>
          </tr>
          <tr>
            <td align="right"><label for="address">Address:</label></td>
            <td align="left"><input name="address" type="text" id="address" size="45" /></td>
          </tr>
          <tr>
            <td align="right"><label for="city">City:</label></td>
            <td align="left"><input name="city" type="text" id="city" size="35" /></td>
          </tr>
          <tr>
            <td align="right"><label for="state">State:</label></td>
            <td align="left"><input name="state" type="text" id="state" size="25" /></td>
          </tr>
          <tr>
            <td align="right"><label for="zip">Zip:</label></td>
            <td align="left"><input name="zip" type="text" id="zip" size="5" /></td>
          </tr>
          <tr>
            <td align="right"><label for="phone">Phone:</label></td>
            <td align="left"><input name="phone" type="text" id="phone" size="12" /></td>
          </tr>
          <tr>
            <td align="right"><label for="email">Email:</label></td>
            <td align="left"><input name="email" type="text" id="email" size="50" /></td>
          </tr>
          <tr>
            <td align="right"><label for="age">Age (if Child):</label></td>
            <td align="left"><select name="age" id="age">
              <option value="Select Age" selected="selected">Select Age</option>
              <option value="1">1</option>
              <option value="2">2</option>
              <option value="3">3</option>
              <option value="4">4</option>
              <option value="5">5</option>
              <option value="6">6</option>
              <option value="7">7</option>
              <option value="8">8</option>
              <option value="9">9</option>
              <option value="10">10</option>
              <option value="11">11</option>
              <option value="12">12</option>
              <option value="13">13</option>
              <option value="14">14</option>
              <option value="15">15</option>
              <option value="16">16</option>
              <option value="17">17</option>
              <option value="18">18</option>
              <option value="19">19</option>
            </select></td>
          </tr>
          <tr>
            <td align="right">Gender:</td>
            <td align="left"><p>
              <label>
                <input type="radio" name="gender" value="male" id="gender_0" />
                Male</label>
              <br />
              <label>
                <input type="radio" name="gender" value="female" id="gender_1" />
                Female</label>
              <br />
            </p></td>
          </tr>
          <tr>
            <td align="right"><label for="comments">Comments:</label></td>
            <td align="left"><textarea name="comments" id="comments" cols="45" rows="5"></textarea></td>
          </tr>
          <tr>
            <td align="right"><input type="reset" name="clear" id="clear" value="Reset Form!" /></td>
            <td align="left"><input name="submit" type="submit" id="submit" onclick="MM_validateForm('name2','','R','address','','R','city','','R','state','','R','zi p','','R','phone','','RisNum','email','','RisEmail');return document.MM_returnValue" value="Submit" /></td>
          </tr>
        </table>
      </form>
    </body>
    </html>

Maybe you are looking for