/    Sign up×
Community /Pin to ProfileBookmark

Checkboxes on to text

I have an email being sent, and when I receive it, the checkboxes that are checked just say [B]on[/B] How can I change that to text?

when the email check box is checked, [B]on [/B]will say Email
when the phone checkbox is checked, [B]on [/B]will say Phone

to post a comment
PHP

5 Comments(s)

Copy linkTweet thisAlerts:
@hsdhmanApr 12.2006 — Easiest solution: name your checkboxes.

<INPUT TYPE=CHECKBOX NAME="email">Email

<INPUT TYPE=CHECKBOX NAME="phone">Phone

In the email, if they are checked, you will see:

name=on

email=on
Copy linkTweet thisAlerts:
@The_Little_GuyauthorApr 12.2006 — I did do that, and It says on, not

email=on

I either want it to display the word email or nothing, same with phone
Copy linkTweet thisAlerts:
@balloonbuffoonApr 13.2006 — Have you tried giving it a value?
[CODE]<input type="checkbox" name="phone" value="phone">[/CODE]

--Steve
Copy linkTweet thisAlerts:
@The_Little_GuyauthorApr 13.2006 — Ahh, ok thnaks
Copy linkTweet thisAlerts:
@balloonbuffoonApr 13.2006 — No problem.

--Steve
×

Success!

Help @The_Little_Guy spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...