The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

4 Pages V « < 2 3 4  
Reply to this topicStart new topic
> Submit Form Issue, Submitting a form action and form method
CharlesEF
post Sep 11 2014, 04:48 PM
Post #61


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



QUOTE(KBM @ Sep 11 2014, 02:07 PM) *
I just want to confirm the bot trap that you made.
1. I have to create a field named “trap.” Correct ?
2. If yes, I take it that I would have to include that field on the submit page! Correct?
3. Then I could create the HTML, CSS and if($_POST && !$_POST['trap']).
Is that the general that is the concept?
Thanks
The HTML input has to be on every page you want to protect against bot attacks. I called it 'trap' but you can call it anything you want, just make sure you change all the 'trap' names to whatever you will use. That's all there is to it.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
KBM
post Sep 11 2014, 09:31 PM
Post #62


Member
***

Group: Members
Posts: 30
Joined: 17-August 14
Member No.: 21,413



QUOTE(CharlesEF @ Sep 11 2014, 05:48 PM) *

QUOTE(KBM @ Sep 11 2014, 02:07 PM) *
I just want to confirm the bot trap that you made.
1. I have to create a field named “trap.” Correct ?
2. If yes, I take it that I would have to include that field on the submit page! Correct?
3. Then I could create the HTML, CSS and if($_POST && !$_POST['trap']).
Is that the general that is the concept?
Thanks
The HTML input has to be on every page you want to protect against bot attacks. I called it 'trap' but you can call it anything you want, just make sure you change all the 'trap' names to whatever you will use. That's all there is to it.

Thanks
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
KBM
post Oct 7 2014, 01:17 PM
Post #63


Member
***

Group: Members
Posts: 30
Joined: 17-August 14
Member No.: 21,413



Forum,
We have an age requirement for our volunteers. They must be at least 16 years old.
How could I do a php age validation so that if they are under 16, a message comes up that says that they do not meet the age requirement and the form does not submit
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
CharlesEF
post Oct 7 2014, 09:29 PM
Post #64


Programming Fanatic
********

Group: Members
Posts: 1,981
Joined: 27-April 13
From: Edinburg, Texas
Member No.: 19,088



You would need to add a date field to your form (or 3, month - day - year). Then you need to change the PHP script to handle that information. You can use PHP's date functions to calculate the difference in dates and report an error, if needed.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 8 2014, 05:23 AM
Post #65


.
********

Group: WDG Moderators
Posts: 9,656
Joined: 10-August 06
Member No.: 7



Why not simply use a checkbox saying "I'm at least 16 years old"?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

4 Pages V « < 2 3 4
Reply to this topicStart new topic
2 User(s) are reading this topic (2 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 26th April 2024 - 09:53 AM