mike366 free asked 5 years ago


The validation code

I copied the contact form, couple issues:

1.  The client side validation code coped from https://mdbootstrap.com/docs/jquery/forms/contact/

This does not work using 'status'

"getElementById('status')"

I changed to the actual element name, like 'email', then no complaints, BUT,
only the last one for message actually displays the warning.
How do i fix this?


2. Any examples of server side validation using PHPMailer, not sendmail?

Thx.

Piotr Glejzer staff answered 5 years ago


Hi,

1. It's a little bug in contact form HTML status has :

<div class="status"></div>

it should be like that
<div id="status"></div>

2. We don't have more examples with PHPmailer, sorry about that.

Have a nice day.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Answered

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB jQuery
  • MDB Version: 4.5.15
  • Device: laptop
  • Browser: chrome
  • OS: win 10
  • Provided sample code: Yes
  • Provided link: Yes