WebmasterSite.net
PHP scripts to enable your creativity
Home
Web Scripts
WSN Links
WSN Gallery
WSN Knowledge Base
WSN Forum
WSN Classifieds
WSN Directory
WSN AdUnblocker
WSN FormEmail
WSN InstaChat
WSN Redirector
WSN Webcomic
WSN Guest
Reviews
WSN For WordPress
WSN For Web Designers
Webmaster Resource Links
Register
Log In
Username
Password
Login
Forgot your password?
WSN Support Forums
Paid Scripts Support
Displaying a checkbox
Displaying a checkbox
Details
Discussion
2
Print
Comments on Displaying a checkbox
•
Nicky32
Member
Usergroup:
Customer
Joined:
Sep 27, 2005
Location:
Canada
Total Topics:
12
Total Comments:
32
•
Nicky32
#1 -
Quote
-
Permalink
Posted Oct 07, 2005 - 1: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
#2 -
Quote
-
Permalink
Posted Oct 07, 2005 - 4:03 PM:
Use the code it inserts by default. <input type="checkbox" name="newfield[]" value="thisop" {CHECKED[newfield <,> thisop]}>
Search thread for
Go ►
Download thread as
text
HTML
Go ►
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on Displaying a checkbox
Member
Usergroup: Customer
Joined: Sep 27, 2005
Location: Canada
Total Topics: 12
Total Comments: 32
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>
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Use the code it inserts by default. <input type="checkbox" name="newfield[]" value="thisop" {CHECKED[newfield <,> thisop]}>