close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Drop down

Thread began 4/02/2015 2:17 pm by wyncole | Last modified 4/14/2015 11:15 am by Ray Borduin | 1589 views | 4 replies |

wyncole

Drop down

I have multiple drop down list populated from a database.
I want the first value in each table to be the default selection.

In the past this has work as expected but this time the default selection varies from each table.

Thanks
Wyn

Sign in to reply to this post

Ray BorduinWebAssist

The browser should automatically select the first value if no default selection is specified. Do you have a sample page I could look at and look at the associated php code? Normally the behavior you want should be automatic, so something on the page must be causing the abnormality.

Sign in to reply to this post
Did this help? Tips are appreciated...

wyncole

Sure,

I went into some of the recordsets and sorted by id in descending order to get what I wanted but the selection list opens from the bottom.

Here is the file.

Thanks,Wyn

Attached Files
inventory_search.php
Sign in to reply to this post

Ray BorduinWebAssist

It looks like you have a dynamic selection set for each that would try to make every option selected. If you just remove that then the first one will be selected instead of the last.

So for instance in the first list this code:

php:
<option value="<?php echo $row_Make_Recordset['make']?>"<?php if (!(strcmp($row_Make_Recordset['make'], $row_Make_Recordset['make']))) {echo "selected=\"selected\"";} ?>><?php echo $row_Make_Recordset['make']?></option>



should be:

php:
<option value="<?php echo $row_Make_Recordset['make']?>"><?php echo $row_Make_Recordset['make']?></option>
Sign in to reply to this post
Did this help? Tips are appreciated...

wyncole

I've been out for the last week so I didn't see you reply. Thanks. Don't know why that code was there. I just used the instructions from your dropdown tutorial.

I'm also having trouble with Security Assist. I'm going to revisit it and see what I can do. It seems as though that the tutorial my be a little out dated and I'm not seeing the same options available as the tutorial.

Thanks, again,
Wyn

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...