thanks for your offer I'm working my way through the example code but my biggest problem is that php site. I don't know php. But from what I get from the php code is that all the sample cities need to be in an unordered list environment <ul><li></li>...</ul> but this form part of the bsmselect example really confuses me.
<h1>Example 1: Typical Usage</h1> <form action="./example_results.php" method="post"> <label for="cities1">What are your favorite cities?</label> <select id="cities1" multiple="multiple" name="cities[]" title="Click to Select a City" class="sminit"> <option>Amsterdam</option> </select> <p><input type="submit" name="submit" value="submit" /></p> </form> especially the php file in form action="" <?php if(!empty($_POST['submit'])) { echo "<html>\n<body style='width: 400px; margin: 2em auto; font-family: Arial;'>"; if(!empty($_POST['cities'])) { echo "\n<p><strong>You selected the following cities:</strong></p>\n<ul>"; foreach($_POST['cities'] as $city) { // exclude any items with chars we don't want, just in case someone is playing if(!preg_match('/^[-A-Z0-9\., ]+$/iD', $city)) continue; // print the city echo "\n\t<li>" . htmlspecialchars($city) . "</li>"; } echo "\n</ul>"; } else { echo "\n<p>No items selected</p>"; } echo "\n<p><a href='index.html'>Try Again?</a></p>"; echo "\n</body>\n</html>"; } else { // if someone arrived here not having started at example.html // then show example.html instead require("index.html"); } It seems to me that there is an entire html document in this php file. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.