cforms II User Forum

Registration is currently disabled.


Login form protected by Login LockDown.

Lost password?
Advanced Search

— Forum Scope —


— Match —


— Forum Options —


Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS
Adding a Checkboxvalidation before Send Button
Before a user can submit a form, he must check one Checkbox (Terms of Service).
March 8, 2013
12:45 am

Hey there!

I'm using cformsII, but unfortunately I'm not very good at PHP.

I want to add a checkbox to my form, which has to be checked, if the user wants to submit the form.

So my first thought was just to add a little -onsubmit- attribute to the form-tag. But I don't know where to find it or where to write the code.


Can you help me? Thank you! sf-smile

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
21 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

tracedef: 43

mores: 21

Gyrus: 20

frozenwaste: 18

asuffredini: 15

photoworks: 14

Member Stats:

Guest Posters: 3762

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5361

Posts: 18742

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)