All Questions
111 questions
3
votes
1
answer
54
views
Wordpress custom registration form with additional fields
I work on plugin for custom auth pages for WordPress and I try to create a custom registration form with additional fields. it has a shortcode in Beaver Builder. Is this the correct approach, and ...
3
votes
2
answers
701
views
PHP HTML form Class - so far so good?
I am writing this class to render HTML forms. It is working as expected, so far. There are many things to be done yet (including testing). Is it ok to keep this way?
...
7
votes
2
answers
964
views
OOP PHP form builder with validation
Yes, another PHP form builder... I wrote this solely to demonstrate OOP principles.
My questions are:
Could this be written better? OOP-wise.
How could I better implement error handling?
Index.php
<...
1
vote
2
answers
102
views
Having trouble deleting multiple queries (PHP, MYSQL)
I'm having trouble making WHERE IN query work, I was only able to make it work as a foreach loop.
My payload looks like this:
sku[]: BOOK0002
sku[]: BOOK0003
My ...
1
vote
1
answer
86
views
PHP function that clones HTML form structure to MySQL database structure
I built a function that should greatly simplify working with long HTML forms, that save data to MySQL using PHP.
My forms usually have several hundred input elements that are added / altered / removed ...
3
votes
1
answer
387
views
PHP Form with reCAPTCHA v2
I managed to make a very simple contact form.
I used PHP for server-side validation and reCAPTCHA v2.
You can access the form at the following link:
https://test.dexsolutions.digital/index.php
And ...
6
votes
1
answer
162
views
Basic login system with 2 factor authentication
What I try to achieve
I need to create a administration-panel for a website. Therefore, I need a possibility to protect the content of the panel via a password. The functionality doesn't have to be ...
2
votes
1
answer
698
views
PHP LDAP credentials validation and error handling
I developed this group of scripts to validate users againts a LDAP server and presenting the appropiate message to the user after sending the information.
I wonder if I'm handling everything properly ...
1
vote
2
answers
92
views
Secure a class for an hydratation from ma form POST
I use PHP classes for managing users accounts and I wonder if what I'm doing is correct.
I directly use the $_POST['form'] for hydrate ...
1
vote
1
answer
36
views
Processing form values for each day of week [closed]
I am using PHP, and I am getting the value back from the form. Since I am working with time, I have an array by (1 x 4) x 7, and I feel like I could do a better job at it. I just don't know exactly ...
3
votes
1
answer
104
views
User form validation using a POPO
I'm trying to sketch out a stripped down generic form validation example. I started by creating Plain Old PHP Objects (referred as POPOs) for form input with some classes such as a validator and html ...
1
vote
1
answer
108
views
Auto generate database table
I have written my own little auto-generated table class, and I was wondering if you guys can give me some tips on how to make this code more elegant and secure and maybe compact it so I use only one ...
1
vote
1
answer
108
views
Check PHP validation code
I have made a form in HTML and the form data should be send via email.
For that purpose I have created a PHP script.
I did read a lot about the importance of form validation in order to prevent ...
2
votes
2
answers
255
views
Dynamically displaying or hiding checkboxes based on region selection country. Also select All / None included
This is basically my first real venture into JS coding ... I think what I have put together here is quite long-winded and could be streamlined but I'm not quite sure how.
I have a table with Columns &...
2
votes
1
answer
132
views
PHP Template: Image file upload handler
I'm trying to develop some templates for common PHP tasks I've been dealing with. One of which is a general image file upload handler.
So far I'm using the following reusable code which seems to be ...