Webmastersite.net
Register Log In

Displaying a checkbox

Comments on Displaying a checkbox

Nicky32
Member

Usergroup: Customer
Joined: Sep 27, 2005
Location: Canada

Total Topics: 12
Total Comments: 32
Nicky32
Posted Oct 07, 2005 - 3:31 PM:

I"m using this code to display a checkbox for a custom link field, and it seems to work, but I'm sure there is a better way.

<tr>
<td class="labelscolumn"><span class="labels">dadadad</span></td>
<td class="optionscolumn">
<IF {LINKMYFIELD}>
<input type="checkbox" name="myfield" value=1 checked>
<ELSE>
<input type="checkbox" name="myfield" value=1>
</IF>
daadadadadada and so on</td>
</tr>
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Oct 07, 2005 - 6:03 PM:

Use the code it inserts by default. <input type="checkbox" name="newfield[]" value="thisop" {CHECKED[newfield <,> thisop]}>
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.