latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Required Fields not Validating

Home Forums Community Forum Required Fields not Validating

This topic contains 4 replies, has 2 voices. Last updated by  Giovanni Mattucci 3 years ago.

Topic Author Topic
Posted: Sunday Dec 8th, 2013 at 7:09 pm #61768

Hello,

I am having a similar problem to what was discussed in this post.

The problem is related to the fact that S2Memeber only validates registration fields with JavaScript, when it should validate with both JavaScript and with PHP.

This leaves the registration page open to abuse by users being able to bypass required registration fields.

Is there a solution to this?

Best,

Giovanni

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Sunday Dec 8th, 2013 at 8:16 pm #61769

The post “Registering Without Required Fields” is related to the problem here.

I guess there is still no PHP validation of Custom Set fields?

Posted: Sunday Dec 8th, 2013 at 9:53 pm #61770

I have purchased the Pro version to utilize the for the PayPal Pro Form free membership shortcode, at least the First and Last name, password, and username is being checked with PHP.

I’m having a new problem, with the Shortcode not including any javascript validation… complete reversal of my problems… I’m going to create a new post regarding that.

Posted: Thursday Dec 12th, 2013 at 8:58 am #61875
Tom
Username: halasyt

Hi, I have the same problem. The required fields thing would also be a good spam counter measure, especially the way I’m using it, so by setting a default value of something totally different that what can actually be validated: http://www.theguitarlesson.com/wp-login.php?action=register

But it isn’t at the moment, since spambots just get around it…

When will this be added serverside?

Posted: Thursday Dec 12th, 2013 at 1:35 pm #61880

Yeah it sucks that the validation selectors only work on javascript, and that it couldn’t just have a PHP equivalent validation there on the backend.

The case could be made where you might want to utilize your own javascript validation.

But even so, the PayPal Pro Form free membership shortcode doesn’t even include the necessary Javascript validation which leaves the registration form completely open.

It would be great if someone could respond with a way to easily add some form of PHP validation to the Custom Registration Fields.

Perhaps someone else has figured out what hooks for the form validation is and added some basic validation that one could extend.

Jason’s code posted here might hold the answer, but I have failed to get it to validate my Paypal Pro Form’s Custom Reg items. I might just be using the wrong function calls.

Any help would be greatly appreciated!

Viewing 4 replies - 1 through 4 (of 4 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.