/    Sign up×
Community /Pin to ProfileBookmark

Email form help please

I have built an email form but am unsure how to make it work fully.

In the action I have put mailto:[email protected]

When I receive the email everything input into the text fields comes out fine

The problem is that there is a checkbox and on the email it just comes back CHECKBOX.

Where there are radio buttons it just comes up RADIO BUTTON

What I want is for the where the checkbox is on the email is to say CHECKED or UNCHECKED and for where the radio buttons are for it to say ON or OFF.

All help much appreciated

to post a comment
HTML

2 Comments(s)

Copy linkTweet thisAlerts:
@ray326Apr 05.2006 — <input type="checkbox" value="CHECKED" name="CheckBox">

It will never say "UNCHECKED".

Give each radio button a value and that value will be returned.
[code=html]
<form action="mailto:[email protected]" method="post" enctype="text/plain">
<input type="hidden" name="Subject" value="form test">
<input type="radio" name="Radio" value="ON"> ON
<input type="radio" name="Radio" value="OFF" checked="checked"> OFF
<input type="submit" name="button" value="Send">
</form>
[/code]

Of course using mailto: is far from a best practice.
Copy linkTweet thisAlerts:
@qhenApr 07.2006 — Hi There,

The easiest way to use a form is to modify one that already works. If you are stuck finding one go to http://www.homebaseexpo.com.au and the What's On Section, and there you will find a form that gets mailed off. Just modify the appropriate elements and it should work.

Hope this is helpful!
×

Success!

Help @charter 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 6.17,
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: @nearjob,
tipped: article
amount: 1000 SATS,

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

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...