Jump to content

Inserting drop down field instead of text field


ddh

Recommended Posts

I attempted to replace:

<tr><td class="fieldarea">{$LANG.clientareastate}</td><td><input type="text" name="city" size="30" value="{$clientstate}" /> *</td></tr>

 

with:

<td class="fieldarea">{$LANG.clientareastate}</td><select name="{$clientstate}"><td><option value="" selected></option><option value="Australian_Capital_Territory">Australian Capital Territory</option><option value="New_South_Wales">New South Wales</option><option value="Northern_Territory">Northern Territory</option><option value="Queensland">Queensland</option><option value="South_Australia">South Australia</option><option value="Tasmania">Tasmania</option><option value="Victoria">Victoria</option><option value="Western_Australia">Western Australia</option><option value="Other_(Outside Australia)">Other (Outside Australia)</option></select> *</td></tr>

 

In the hope that it would allow the user to select their state. However, no drop down box was shown. Any suggestions? Also, does anyone have a linked drop down, so that if someone selects say Australia, it drops down the States for Australia, etc...

Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated