Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

i want my dropdown to always select the value from database as defualt.

Featured Replies

Hello guys, from my sign up form i make my sex field which is dropdown, which options are SELECT YOUR SEX, MALE, FEMALE. In my edit profile page i also have the sex field as dropdown but i want it to always echo or show the value in the database. as in if the member has signup as a female whenever she visit her edit-profile page the dropdown should show FEMALE which is in the database of the member as her sex and not SELECT YOUR SEX. kindly help

 

regards

<select name="LangUse"  id="LangUse">
           	<option value="<?php print $LangUse?>" selected><?php print $LangUse?></option>
           	<option value="Cart">Cart</option>
           	<option value="Basket">Basket</option>
           	<option value="Trolley">Trolley</option>
         	</select>

 

Get the value from the data base then construct as above.

  • Author

<select name="LangUse"  id="LangUse">
           	<option value="<?php print $LangUse?>" selected><?php print $LangUse?></option>
           	<option value="Cart">Cart</option>
           	<option value="Basket">Basket</option>
           	<option value="Trolley">Trolley</option>
         	</select>

 

Get the value from the data base then construct as above.

 

topshoper thanks for your help. i really appreciate

 

regards

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.