WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

Displaying a checkbox

Version:
printPrint


Displaying a checkbox
Nicky32
Member

Usergroup: Customer
Joined: Sep 27, 2005
Location: Canada
Total Topics: 12
Total Posts: 32
Posted 10/07/05 - 12:31 PM:
quote post
#1
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>

http://www.magic-directory.com
Paul
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6339
Posted 10/07/05 - 03:03 PM:
quote post
#2
Use the code it inserts by default. <input type="checkbox" name="newfield[]" value="thisop" {CHECKED[newfield <,> thisop]}>

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.